Perl Mime::Lite question. Help please?
I'm trying to use Mime::Lite to send out multipart messages. So far,
it all seems to work well except for one small part.
I want to display a "real name" along with the email address when I
send out the emails. Unfortuantely, whenever I do so, it gets bounced
by the program as an invalid email address.
For example, this works:
$msg = MIME::Lite->new(
From => 'email@example.com',
To => 'firstname.lastname@example.org',
Subject => $subject,
### Attach a part... the make the message a multipart
MIME::Lite->send('smtp', $MAIL_RELAY, Timeout=>$MAIL_TIMEOUT) ||
die "Could not send mail!!";
However, if I change the From line to 'Wayne <email@example.com>' it
fails as a bad address. I've tried using send_by_sendmail as well as
send_by_smtp and am nearly at my wits end. Does anyone have any
Thanking you in advance,
Re: Perl Mime::Lite question. Help please?
WayneS1068@yahoo.com (Zev Steinhardt) wrote in message news:<firstname.lastname@example.org. com>...
> I'm trying to use Mime::Lite to send out multipart messages. So far,
> it all seems to work well except for one small part.
> I want to display a "real name" along with the email address
Lite is very fussy about the format of the recipients.... try something like this:
$Recipient = "\"$RealName\"\<$email\>";
|All times are GMT. The time now is 12:08 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.