Ignore:
Timestamp:
09/17/12 10:04:24 (12 years ago)
Author:
nanardon
Message:

use EMail::Send instead EMail::Sender

EMail::Sender is not availlable on Mandriva 2010 but EMail::Send exists on all
distribution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Services/Mailing.pm

    r1136 r1138  
    33use namespace::autoclean; 
    44use Email::MIME::Creator; 
    5 use Email::Sender::Simple qw(sendmail); 
    6 use Email::Sender::Transport::SMTP::Persistent qw(); 
     5use Email::Send; 
    76 
    87 
     
    110109        ); 
    111110        $email->header_set( To => $to ); 
    112         sendmail( 
    113             $email, 
    114             { 
    115                 from => $from, 
    116                 transport => Email::Sender::Transport::SMTP::Persistent->new({ 
    117                         host => 'localhost', 
    118                         port => 25, 
    119                 }) 
    120             } 
    121         ); 
     111        my $sender = Email::Send->new({mailer => 'SMTP'}); 
     112        $sender->send($email->as_string); 
    122113    } 
    123114    $c->session->{mailing}{subject} = ''; 
Note: See TracChangeset for help on using the changeset viewer.