Teen Programmers Unite  
 

 

Return to forum top

php mail()

Posted by jay_dee [send private reply] at January 02, 2003, 01:46:04 AM

I was messing around with the mail() function in php and I could get it to send a message using this code

<html>
<?php
mail("j_danilson@hotmail.com", "blah balh", "lalala");
?>
</html>

but even though it sent the message it also gave me the following error message

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Xitami\webpages\mail.php on line 6

My code is only 5 lines. Anyways, I'm just wondering what this means and what I can do to fix it.
thanks

Posted by gian [send private reply] at January 02, 2003, 01:54:21 AM

I'm guessing that your MTA is broken, and it just sits there for more than the alloted 30 seconds of processing time. I believe you can set the maximum execution time in php.ini.

Posted by AnyoneEB [send private reply] at January 02, 2003, 04:50:15 AM

Make sure the SMTP settings are set right in php.ini.

Look at the comments here: http://www.php.net/manual/en/ref.mail.php

Posted by CDR700 [send private reply] at January 02, 2003, 06:04:29 AM

ARe your sure you PHP is:

Configured with an SMTP Server in c:\php.ini.

Posted by jay_dee [send private reply] at January 02, 2003, 05:45:26 PM

oh ok, thanks

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.