Changeset 139 for trunk


Ignore:
Timestamp:
03/29/09 22:40:46 (15 years ago)
Author:
nanardon
Message:
  • fix mail sender (from Mail::Util man page)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote/Model/Vote.pm

    r136 r139  
    446446    $info->{ballotid} or return; 
    447447    my $mailer = new Mail::Mailer 'smtp', Server => (Vote->config->{smtp} || 'localhost'); 
     448    $ENV{MAILADDRESS} = $vid; 
    448449    $mailer->open({ 
    449450        From => $vid, # TODO allow to configure this 
     
    840841    # TODO complete this properly: 
    841842    my $mailer = new Mail::Mailer 'smtp', Server => (Vote->config->{smtp} || 'localhost'); 
     843    $ENV{MAILADDRESS} = $voteinfo->{owner}; 
    842844    $mailer->open({ 
    843845        From => $voteinfo->{owner}, 
     
    930932    $addreq->execute($reqid, $info{label}, $info{mail}); 
    931933    my $mailer = new Mail::Mailer 'smtp', Server => (Vote->config->{smtp} || 'localhost'); 
     934    $ENV{MAILADDRESS} = 'Voting system <nomail@nomail.com>'; 
    932935    $mailer->open({ 
    933936        From => 'Voting system <nomail@nomail.com>', # TODO allow to configure this 
Note: See TracChangeset for help on using the changeset viewer.