|
-
Jan 29th, 2002, 11:17 PM
#1
Thread Starter
Member
PHP Learning
I've got this code:
PHP Code:
<?php
/* recipients */
$to = "Arien Talabac <[email protected]>" . ", " ; //note the comma
/* subject */
$subject = "Test Mail";
/* message */
$message = '
Test message
';
/* To send HTML mail, set the Content-type header. */
//$headers = "MIME-Version: 1.0\n";
//$headers = "Content-type: text/html; charset=iso-8859-1\n";
/* additional headers */
$headers = "From: TurtleTips Auto-Mailer <[email protected]>\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
?>
But I get an error on the last line (mail($to...):
PHP Code:
Warning: Server Error in d:\apacheroot\phppages\sendmail.php on line 22
I defined my SMTP server in the php.ini file to be mail.*****.**.home.com (replacing the *s ) but it still doesn't work, and I can't find any error log to see what error was generated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|