Strange From address on activation confirmation email

A place to discuss and receive support for the Web Auction application.

Strange From address on activation confirmation email

Postby 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
leeue
 
Posts: 11
Joined: Fri Oct 16, 2009 2:29 am

Postby 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"
             );
           
       
       
    }
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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!
leeue
 
Posts: 11
Joined: Fri Oct 16, 2009 2:29 am

Postby 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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 25 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved