22412 Posts in 6905 Topics by 2750 members
|Go to End|
14 September 2012 at 3:15am Last edited: 14 September 2012 8:10pm
I have just spent all day trying to track down why an email was not being sent when I clicked on the lost password link using a fresh install after adding source files from http://www.ssbits.com/tutorials/2010/site-members-registering-users-and-allowing-them-to-edit-their-details/.
I am using Version 2.4.7 on WAMP and turns out that I could solve it by adding the following line to mysite/code/_config.php.
This set the from address in the list of parameters sent to the 'send' function in Email.php. Without this 'from' is not set and no email is sent with no error message to say why.
Did I miss something obvious here? I ask this because people must be hitting this issue a lot - or I have overlooked something obvious and my solution is not appropriate.
14 September 2012 at 11:56pm
There can be many reasons why an e-mail is never sent, or sent but never received. I always make sure, if I can, that the sender e-mailaddres has the same domain name as the website, and that it is an existing e-mail address, most times this is enough to satisfy even very strict emailproviders. So setting the admin email is definitely a good idea. Something like noreply@xxxx.
But there are other considerations as well and other people might explain things far better then I evr could... Example: for one of my testservers only one domain name is acepted by the smtp server I use, its admin person being very very cautious...
15 September 2012 at 12:12am
Thank you for the tips.
|Go to Top|