Robin S Posted April 26, 2016 Share Posted April 26, 2016 I believe I have sendmail set up correctly in my localhost environment, and I can send mail fine with WireMail like: wireMail('my@email.com', 'some@email.com', 'Message Subject', 'Message Body'); But when attempting to use the core "forgot password" feature WireMail throws an error: Invalid email address (processwire@myvirtualhost) Is there a config option to set this default "from" address to something that is better formed? Link to comment Share on other sites More sharing options...
adrian Posted April 26, 2016 Share Posted April 26, 2016 There is a setting for the Forgot Password module that lets you set the from email address. 4 Link to comment Share on other sites More sharing options...
kixe Posted April 26, 2016 Share Posted April 26, 2016 To complete Adrians answer, the ProcessForgotPassword.module tries to determine the 'from' Email address in 3 steps (fallback) from the Modules settings, like Adrian described from config.php $config->adminEmail = info@example.org; construction of an Email address based on $config->httpHost like: $from = 'processwire@' . $config->httpHost; This happend in your example. 7 Link to comment Share on other sites More sharing options...
szabesz Posted April 27, 2016 Share Posted April 27, 2016 Probably $config->adminEmail = "info@example.org"; Anyway, thanx for the explanation, Kixe! I did not know this either. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now