Now the problem is that when I use the commented line code instead of passing $recepient...it works fine and in the above case it does not. Can you help me in fixing this. Thanks#!/usr/bin/perl use warnings; use strict; use Net::SMTP; my $recepient = qq("nafroz\@sunamerica.com","sdas\@sunamerica.com"); print "$recepient \n"; my $smtp = Net::SMTP->new('smtp1.sunamerica.com'); $smtp->mail("nafroz\@sunamerica.com"); #$smtp->to("nafroz\@sunamerica.com" , "sdas\@sunamerica.com"); $smtp->to($recepient); $smtp->data(); $smtp->datasend("Subject: TEST MESSAGE\n"); $smtp->datasend("To: nafroz\@sunamerica\n"); $smtp->datasend("\n"); $smtp->datasend("Email test."); $smtp->dataend(); $smtp->quit;
In reply to Problem in adress field for email script. by Nesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |