CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Sending emails using PHP in CC

Print topic Send  topic

Author Message
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);

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.