
PGScooter
stranger
Feb 23, 2007, 5:19 PM
Post #12 of 13
(752 views)
|
|
Re: [KevinR] sendmail problems with more than 2 recipients
[In reply to]
|
Can't Post
|
|
Nope, still doesn't work. It goes through the loop and successfully opens up SENDMAIL, but I only receive the email at the first address.. Another interesting thing is that the script works really well for gmail addresses but I can't seem to get it to work for my hotmail address... I don't know if that's netfirms's problem or hotmail's.
@myemails=('1234@gmail.com','4566@gmail.com','33444@hotmail.com'); foreach $toemail (@myemails) { #my $comments = "Hi, I've decided to make a personal goal for myself and wanted to share it with you. Here are the details of my goal: $goal"; my $comments= "alright, I'm testing the loop Idea: @myemails"; open ( MAIL, "| /usr/lib/sendmail -t" ); print MAIL "From: $email\n"; print MAIL "To: $toemail\n"; print MAIL "Subject: Name's Goal!\n\n"; print MAIL "$comments\n"; close ( MAIL ); open(TESTING,">>testingloops.txt") or die "can't open testing file"; print TESTING "loop completed for $toemail"; close(TESTING); } The more you teach me, the more I learn. The more I learn, the more I teach.
|