Please fix this, it has been 1 week already, I really need this function.
Please fix this, it has been 1 week already, I really need this function.
Hello,
The php mail() function is enabled and works properly on starka, please check your syntax and parameters in your mail script.
█ Ryan Schmidt | Level 2 Support
█ 888-X10-9668 - ryan[@]x10hosting.com
█ x10Hosting - Giving Away Hosting Since 2004
█ Premium Hosting | VPS Services
No it does not work, this is my test mail script Test Mail. It went to "Mail Sent." without any errors, but I didn't receive any email at all:
Code:<?php $to = "test@hero1711.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "test@hero1711.com"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
Last edited by hero1711; 08-13-2011 at 12:38 PM.
Send it to an account outside of x10hosting.
PHP Code:<?php
// TEST OF THE MAIL SYSTEM USING PHP mail()
date_default_timezone_set('America/Los_Angeles');
echo date('l jS \of F Y h:i:s A');
echo "\n";
$from = "test@hero1711.com";
$to="myGmailAccount@gmail.com";
$mailbody="Test message sent (PST): \n" . date('l jS \of F Y h:i:s A');
$subject="Test of PHP mail()" ;
$headers = "Content-type: text/plain; charset=windows-1251 \r\n";
$headers .= "From: $from\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
$resp = mail($to, $subject, $mailbody, $headers);
if( $resp ){
$outcome = "Mail sent" ;
} else {
$outcome = "Mail not sent";
}
print "\nThe mail system said: $outcome\n\n" ;
exit();
?>
Nothing is always absolutely so.
Mails of hero1711.com are hosted on Google. But sending to another email address outside of hero1711.com works. Is that a misconfiguration of the php mail function? It worked well before the upgrade.
I need to send emails to addresses on hero1711.com.
Last edited by hero1711; 08-13-2011 at 10:26 PM.
Well, at least the mail() function works.
How about trying to send it from test@hero1711.com to foo@hero1711.com (where foo is another account on gmail). Thinking that having the 'From' and 'To' addresses the same might cause the x10 anti-spam filters to eat the email.
Nothing is always absolutely so.
I tried from test@hero1711.com to hero1711@hero1711.com (both of them are real addresses) and it did not work.
Bump!
Bump!
Bump!