Jump to content

Recommended Posts

Posted

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?

Posted

To complete Adrians answer, the ProcessForgotPassword.module tries to determine the 'from' Email address in 3 steps (fallback)    

  1.  from the Modules settings, like Adrian described
  2.  from config.php
     $config->adminEmail = info@example.org;
  3. construction of an Email address based on $config->httpHost like:
    $from = 'processwire@' . $config->httpHost;
    This happend in your example.
  • Like 7
Posted

Probably $config->adminEmail = "info@example.org";

Anyway, thanx for the explanation, Kixe! I did not know this either.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...