CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 mail() function not working

Print topic Send  topic

Author Message
Christo
Posted: 06/05/2002, 1:37 PM

Has anyone found a solution to this? I'm using the TellAFriend example and am receiving part of the same error as feha noted in his 3/30/02 thread, "Another problem with e-mail." The errors are as follows: "Warning: Cannot add header information - headers already sent by ..." and "Warning: Failed to Receive in c:\program files\apache group\apache\htdocs ..."

I have made no modifications to the PHP code. I modified my php.ini file so that the "smtp = " line under the "mail function" heading points to my ISP's e-mail server. Beyond that, I'm at a loss for what to do.

Any help would be greatly appreciated.

Thanks.

Christo
Christo
Posted: 06/07/2002, 8:43 AM

I think I figured out my problem. Apparently it matters where the mail() function is placed within the code, and I might have figured that out sooner if I had understood what the error messages in my previous e-mail meant.

Originally I had placed this function in the "After Insert" event block. When I placed it in the "Before Insert" event block, it seemed to work fine. Problem solved.

Hope this helps someone.

Christo

   


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

Web Database

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.