Strange From address on activation confirmation email

Archived from the Web Auction Discussion forum.

leeue — Fri Oct 16, 2009 2:38 am

Hi all,

When a user has registered for an auction, he gets the activation confirmation email with from address: anonymous@servername.domainname.nl

Allthough I filled in existing email addresses in the config panel and conf.ini.

This looks very unreliable.

Where does this come from, and how can I change it?

Kind regards for any help!

Erik


shannah — Fri Oct 16, 2009 7:26 am

Good point. Add the following method to your application delegate class (located in conf/ApplicationDelegate.php):

Code: Select all
function getRegistrationActivationEmailInfo(&$record, $activationURL){         return array(             'headers' => ''From: '.getConf('notification_from_address') . "\r\n" .                                  'Reply-To: '.getConf('notification_from_address') . "\r\n"              );                                 }

leeue — Fri Oct 16, 2009 8:50 am

Ahhh….THANKS. It works.

First my site ended up blank, after applying your extra code. But when I used: ‘From: instead of ‘‘From: it worked (one quote less).

Thanks again, and kind regards!


shannah — Fri Oct 16, 2009 9:15 am

Note: I have now added this modification into SVN so it will be included in the next release of WebAuction.