Subject: | 5.5.4 invalid address with send_by_smtp only |
perl 5.8.0, MIME::Lite 3.0.1, solaris 2.8
Looks like send_by_smtp is inserting an extra "<". The below works with send_by_sendmail.
#!/usr/local/bin/perl
use MIME::Lite;
$msg=MIME::Lite->new(From=>'"Sean Walbran" <swalbran@digitalriver.com>',
To=>'swalbran@digitalriver.com',
Subject=>'test',
Data=>'Hello');
$msg->send_by_smtp('drmail01.digitalriver.com');
/ # /var/tmp/ml.pl
SMTP MAIL command failed:
5.5.4 Invalid Address
at /var/tmp/ml.pl line 8