CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 After Insert Email NOT Working

Print topic Send  topic

Author Message
Posted: 12/16/2003, 11:21 AM

I have code that should send out email after a record is inserted. However I recieve the following error:

Warning: Server Error in c:\program files\easyphp\www\onlinestats\New_Ticket_events.php on line 26

Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\onlinestats\New_Ticket_events.php:26) in c:\program files\easyphp\www\onlinestats\new_ticket.php on line 534

Here is my code in New_Ticket_events:

function BugTracking_AfterInsert()
$BugTracking_AfterInsert = true;
global $BugTracking;
if (isset($_SESSION['EMAIL'])) {
$to = $_SESSION['EMAIL'];
$subject = "NEW TICKET";
$message = "THIS IS A NEW TICKET";
$additional_headers = "From: $from\nReply-To: $from\nContent-Type: text/plain";
mail ($to, $subject, $message, $additional_headers);
return $BugTracking_AfterInsert;

And my new_ticket.php code:

//Go to destination page @1-6F9FD7CC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
//End Go to destination page

Any ideas on how to fix this? Thanks!
Posted: 12/22/2003, 6:39 PM

hi :)
1st: Do you have a mail server ?
please tray to be shur by sen a normal mail like :
mail ("", "test", "hi all");

or to see your phpinfo file...

Posted: 12/23/2003, 8:10 AM

My mail server is a novell server, and everything looks correct in my phpinfo.php file, any other suggestions? Thanks!


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

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