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();
In reply to NET::SMTP help by bengmau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |