![]() |
|
| |||||||
| Notices |
| Email Problems (POP, SMTP & Webmail) Covers problems with receiving and sending Email, configuring your email services (ie. Outlook, Eudora, Pegasus) and using webmail. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
|
i can not send to 2 e'mail <?PHP $mailto = "forexoman2008******.com"; $mailto = "forexpresident******.com"; $email = $HTTP_POST_VARS['email']; if ($email == "") { $email = $mailto; } $mailsubj = "call me"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Values submitted from web site form :\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { if ($key!="submit") { $mailbody .= "$key : $val\n"; } } mail($mailto, $mailsubj, $mailbody, $mailhead); |
|
#2
| ||||
| ||||
|
You are declaring the variable $mailto twice. Try declaring it with the two addresses separated by a comma. $mailto = "forexoman2008******.com,forexpresident******.com" ; |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |