John Sutton
|
| Posted: 05/19/2003, 12:57 AM |
|
All I can find are ASP examples for sending mail. I want to send and email in the After Insert event on a form. I'm trying a simple piece of code until I find out what's going on. The following code:
$mail_subject = "Your confirmation";
$mail_to = $members->email->Value;
$mail_from = "support@american-balkanpartners.com";
$mail_body = "Congratulations! You're almost there. Just click the link below to validate your new American-Balkan Partners ID.\r\n";
$mail_body .= "\r\n";
$mail_body .= "http://american-balkanpartners.com\r\n";
$mail_body .= "\r\n\r\n";
$mail_body .= "Support\r\n";
$mail_body .= "American-Balkan Partners";
generates the following error:
Warning: Bad Message destination in C:\Program Files\BadBlue\PE\abp\signup_events.php on line 92
Warning: Cannot add header information - headers already sent by (output started at C:\Program Files\BadBlue\PE\abp\signup_events.php:92) in C:\Program Files\BadBlue\PE\abp\signup.php on line 457
Any help would be appreciated. I'm experienced in PHP but totally new to CC and it's horrible documentation.
|
|
|
 |
John Sutton
|
| Posted: 05/19/2003, 1:03 AM |
|
Oops. I missed adding the last line of the code.
mail($mail_to, $mail_subject, $mail_body);
|
|
|
 |
|