Email from PHP unknown error!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Email from PHP unknown error!

Post 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.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Have you configured properly on php.ini. If not that is the problem and you will need to get a SMTP server.
User avatar
gite_ashish
Forum Contributor
Posts: 118
Joined: Sat Aug 31, 2002 11:38 am
Location: India

Post by gite_ashish »

hi,

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

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



regards,
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What exactly is the error you get?

Mac
Post Reply