It might be my mail server settings. I am using Exchange Server 2003.

SMTP MAIL command failed:
5.5.4 Invalid Address

I will check into this more.

-----Original Message-----
From: Paul Kraus [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 4:21 PM
To: Paul Harwood; Beginner Perl
Subject: Re: SMTP From field using MIME::Lite

This code works for me
-----
#!/usr/bin/perl

use strict;
use warnings;
use MIME::Lite;

my $msg = MIME::Lite->new(
                          From => '"Paul Kraus" [EMAIL PROTECTED]',
                          To   => '[EMAIL PROTECTED]',
                          Subject => 'RE:SMTP From field using
MIME::Lite - Test Send',
                          Data => 'This message sent with mime lite'
                         );
MIME::Lite -> send ('smtp','my.mailserver.com' );
$msg -> send;


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to