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
|
|
|
 |
|