Good day all,

About 3 years ago i wrote a simple mail script for our site and it has worked wonderfully unitl about a month or so ( i really am not sure ).

it seems that what ever info is sent to the mail function it always returns false.

even trying this:
<?php

if ( mail ( "me@myemail.com", "testing", "god dam if this works" ) )
{
Echo "why did this work";
}
else {
echo "still broken";
}
?>

Mail is still returning false.

PHP varailables on server:

sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

I don't think anything on the server has changed.

My question is if anyone knows of the mail always false ( no emails sent )?

Thanks to all.

    If you're sure you're passing valid parameters to mail() then it must be due to a change in the set up. I'd advise contacting your web host and/or taking a look at your set up by using the phpinfo() function.

      Thank you but unfortunetately my webhost is a moron and will likey tell me to delete my cookies.

      I have install a few php mailing scripts and they seems to work, as well we run zencart and it is able to mail out ok.
      Guess i was hoping for an parameter that would sove everything :evilgrin:

      I don't know if any one here knows or uses zencart but you can choose what to use to send mail out.

      Like choosing PHP, or sendmail, qmail.

      is there a was to use sendmail directly?

        Since I'm guessing you don't want me to say "Get a new host", try PHP Mailer 🙂

          Well at least some light has been shed on this.
          My host has yet a gain flagged us as bulk email senders.

          I have read a few ways on using a php mail script for spamming purposes and some way to stop that ( almost stop at least ).

          Does anyone know of a good tutorial or info page to read on this?

            Write a Reply...