FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » sending email
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: sending email [message #174875 is a reply to message #174874] Fri, 15 July 2011 05:06 Go to previous messageGo to previous message
Geoff Muldoon is currently offline  Geoff Muldoon
Messages: 19
Registered: July 2011
Karma:
Junior Member
ron(dot)eggler(at)gmail(dot)com says...
>
> Hi There,
>
> I wrote following test script:
> <?php
> $to = "myself(at)gmail(dot)com";
> $subject = "Test";
> $body = "This is a test!";
> if (mail($to, $subject, $body)) {
> echo("<p>Message successfully sent!<br><FORM><INPUT TYPE=\"button\" VALUE=\"Back\" onClick=\"history.go(-1);return true;\"></FORM></p>");
> } else {
> echo("<p>Message delivery failed...</p>");
> }
> ?>
> and i get Message successfully sent! but no email ever arrives in my inbox, why not? What am i dong wrong?

Look in your server's sendmail/smtp logs, most smtp servers these days
might spam-bot out your message after it has successfully passed through
the PHP stage without some additional well-formed headers like "from:"
(you have this set in your php.ini?)

GM
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Restricting access to a website
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 20 07:32:42 GMT 2024

Total time taken to generate the page: 0.04715 seconds