in reply to Sending Mail from Perl Script
The "@" character is special inside quotes, and this is the source of your problem. Either:
a) Escape the symbol:
my $msg = MIME::Lite->new ( From => "user\@gmail.com", To => "user\@gmail.com", Data => "This is a test\n", Subject => "Test", );
or b) Use single-quotes to avoid the interpolation:
my $msg = MIME::Lite->new ( From => 'user@gmail.com', To => 'user@gmail.com', Data => "This is a test\n", Subject => "Test", );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sending Mail from Perl Script
by Niner710 (Sexton) on Nov 20, 2007 at 00:56 UTC | |
|
Re^2: Sending Mail from Perl Script
by Anonymous Monk on Oct 06, 2008 at 10:22 UTC |