Page 1 of 1

Strange From address on activation confirmation email

PostPosted: Fri Oct 16, 2009 2:38 am
by leeue
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

PostPosted: Fri Oct 16, 2009 7:26 am
by shannah
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"
             );
           
       
       
    }

PostPosted: Fri Oct 16, 2009 8:50 am
by leeue
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!

PostPosted: Fri Oct 16, 2009 9:15 am
by shannah
Note: I have now added this modification into SVN so it will be included in the next release of WebAuction.