Recently i changed my mail services from contabo server to hostinger, Im using the correct credentials and host from hostinger but when i try to send email receiving only on contabo and not on hostinger
One notice , My web services for that domain is on contabo , my mail services is on hostinger, im using cloudflare and i make few times purge cache with no luck
$to_Email = "[email protected]"; //Replace with recipient email address
$subject = 'Message from website '.$_SERVER['SERVER_NAME']; //Subject line for emails
$host = "smtp.hostinger.com"; // Your SMTP server. For example, smtp.mail.yahoo.com
$username = "[email protected]"; //For example, [email protected]
$password = "xxxxx"; // Your password
$SMTPSecure = "ssl"; // For example, ssl
$port = 465; // For example, 465
My Answer:
It seems like there could be a few reasons why your emails are not being sent through Hostinger's mail services. Here are a few things you can check:
1. Make sure that the SMTP server, username, password, SMTP secure, and port settings are correct for Hostinger's mail services. Double-check with Hostinger's documentation or support team to ensure that you are using the correct settings.
2. Check if Hostinger's mail services require any specific configurations or settings that you may have missed. Some hosting providers have specific requirements for sending emails through their servers.
3. Verify that your domain's DNS settings are correctly configured to point to Hostinger's mail servers. This includes setting up MX records and any other necessary DNS records for email delivery.
4. Check if there are any firewall or security settings on Hostinger's end that may be blocking the emails from being sent. Contact Hostinger's support team to see if there are any restrictions in place.
5. Test sending emails from a different email client or tool to see if the issue is specific to PHPMailer. This can help determine if the problem lies with PHPMailer or with the email server configuration.
If you have tried all of the above and are still experiencing issues, it may be helpful to reach out to Hostinger's support team for further assistance. They should be able to help troubleshoot the issue and provide guidance on how to resolve it.
Rate this post
3 of 5 based on 5022 votesComments