Search the Community
Showing results for tags 'PHP Mail'.
-
Hello, I have the simple PHP mail command of (for testing), to send out an email: echo "<body>"; $to = "mail@mail.com"; $subject = "This is subject"; $message = "This is simple text message."; $header = "From:mail@gmail.com \r\n"; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo "Message sent successfully..."; } else { echo "Message could not be sent..."; } When I run it on here it says "Successful". I realise that I must change [mail] section in the PHP.ini file to make this work? Does anyone know how to do this? Or can I run the mail() from heliohost? Thanks Matthew
-
The php mail function always returns false and it emits a warning that it "Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /home/hudzy/public_html/icl/testmail.php on line 5" I tried renaming the file and putting valid email address. It still didn't work as what is suggested here http://www.helionet.org/index/topic/14168-solved-php-mail-function-doesnt-work/page__p__85919__hl__+execute%20+delivery%20+program__fromsearch__1?do=findComment&comment=85919. Does anyone know any other solution?. Im in stevie server. Thanks Ahead.
-
PHP mail() problem I have a form on my site that I thought worked at one time, but does not now. Tried it on another host and it works. (same version of PHP) Also if somebody tries to send me an email at domainfw@domainfwd.heliohost.org, or any address at my domain, it does not get to the address that I forwarded it to and tried webmail thru Cpanel but don't see it there either. I have set the 'Default Address Maintenance' to 'Send all unrouted email for:' domainfwd.heliohost.org to a GMX.com address. I have not changed any MX records for domainfwd.heliohost.org. I have been testing the form, possibly sending out bad email. Is it possible that somehow I have been banned from receiving/sending email because of this? Or maybe I have something misconfigured in Cpanel? I am on stevie. domain: domainfwd.heliohost.org username: domainfw