bengmau has asked for the wisdom of the Perl Monks concerning the following question:
from and to scalars address are in the format blah@blah.com when I telnet manually and do the same as what the perl script does it sends the e-mail. so I know it's something about the codingmy $from = "$cfg->{mail}->{'from'}"; my $to = "$cfg->{mail}->{'to'}"; my $host = $cfg->{mail}->{smtp_host}; INFO("sending message to $to via $host"); ## My NET::SMTP invocation my $port = $cfg->{mail}->{smtp_port}; my $s = Net::SMTP->new( $host, Port => $port ); print $s->banner(), "\n"; $s->to($to); $s->mail($from); $s->data(); $s->datasend("To: $to\n"); $s->datasend("\n"); $s->datasend("$message \n" ); $s->datasend( "\n" ); $s->dataend(); $s->quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NET::SMTP help
by NetWallah (Canon) on Mar 10, 2005 at 05:50 UTC | |
by bengmau (Beadle) on Mar 10, 2005 at 16:08 UTC | |
|
Re: NET::SMTP help
by chas (Priest) on Mar 10, 2005 at 05:32 UTC | |
by Anonymous Monk on Mar 10, 2005 at 12:30 UTC | |
by chas (Priest) on Mar 10, 2005 at 13:08 UTC | |
|
Re: NET::SMTP help
by Tanktalus (Canon) on Mar 10, 2005 at 14:17 UTC | |
by bengmau (Beadle) on Mar 10, 2005 at 16:31 UTC | |
by Tanktalus (Canon) on Mar 10, 2005 at 16:45 UTC | |
by bengmau (Beadle) on Mar 10, 2005 at 18:06 UTC |