i am deploying my project to shared hosting now. But i found that when i register account. The email cannot sent and having error xxx.com is currently unable to handle this request.Even using a simple script to test it also same problems.
<?php
$to = “name@gmail.com“; // <– replace with your address here
$subject = “Test mail”;
$message = “Hello! This is a simple test email message.”;
$from = “admin@domain.com“;
$headers = “From:” . $from;
mail($to,$subject,$message,$headers);
echo “Mail Sent.”;
?>
In localhost i am using gmail to test the mailing and is work well. But when deploy to server it can't work. I am using godaddy shared hosting Cpanel. I also tried using hosting mail configuration
Non-SSL Settings
(NOT Recommended)
Username: admin@domain.com
Password: Use the email account’s password.
Incoming Server: mail.domain.com
IMAP Port: 143
POP3 Port: 110
Outgoing Server: mail.domain.com
SMTP Port: 25
Authentication is required for IMAP, POP3, and SMTP.
But also did't work. Am i missing something configuration?
Original
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=name@gmail.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qKe1Ux
via IFTTT
Aucun commentaire:
Enregistrer un commentaire