|
-
Feb 11th, 2003, 05:23 PM
#1
Thread Starter
Member
perl form-->email problem
Hi,
I have a form to email script, but it seems that whenever i want it to go to more than 1 email address, the server spits a 500 out at me.
currently,
$to = "nullbox\@hotmail.com";
works.
but when i add
$to = "nullbox\@hotmail.com, nullbox2\@hotmail.com";
it doesnt work.
anybody know what im doing wrong?
-
Feb 11th, 2003, 11:11 PM
#2
Member
That's because the To: mail header wants a valid e-mail address, and "nullbox\@hotmail.com, nullbox2\@hotmail.com" isn't it. Your best approach would be to loop through a list of address.
$to = ['[email protected]', '[email protected]'];
for (@{$to}) {
...
print "To: $_\n";
...
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|