Changeset 283

Show
Ignore:
Timestamp:
03/05/06 02:56:18
Author:
miyagawa
Message:

Publish::Gmail: Fix bad mailfrom. Thanks to maru.gs
http://maru.gs/mt/archives/2006/03/mimelite.html

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/Gmail.pm

    r236 r283  
    7777        ]; 
    7878        $msg->send_by_smtp_tls(@{ $self->{tls_args} }); 
     79    } elsif ($route->{via} eq 'sendmail') { 
     80        my %param = (FromSender => "<$cfg->{mailfrom}>"); 
     81        $param{Sendmail} = $route->{command} if defined $route->{command}; 
     82        $msg->send('sendmail', %param); 
    7983    } else { 
    8084        my @args  = $route->{host} ? ($route->{host}) : ();