Page 1 of 1

Email from PHP unknown error!

Posted: Wed Sep 04, 2002 5:17 pm
by Gen-ik
Hiya.

I keep getting an error from this script when ever I try to run it.. I have tried a few different ways of doing it but none seem to work. Can anyone see a problem here....

<?php
$mailto="you@somewhere.com";
$mailsub="The Subject";
$mailbod="Ohh nice body!";

mail($mailto, $mailsub, $mailbod);
?>


I using it as a confirmation thing.. I want to it automatically send out an email without it opening the users email-prog.

Tar.

Posted: Thu Sep 05, 2002 12:44 am
by Takuma
Have you configured properly on php.ini. If not that is the problem and you will need to get a SMTP server.

Posted: Thu Sep 05, 2002 12:57 am
by gite_ashish
hi,

see related recent post, this might be helpful to u:

http://www.devnetwork.net/forums/viewtopic.php?t=2698



regards,

Posted: Thu Sep 05, 2002 12:59 am
by Takuma

Posted: Thu Sep 05, 2002 5:58 am
by twigletmac
What exactly is the error you get?

Mac