Can't use the mail() function from my web hosting

Red Yonko

Senior Member
Joined
Oct 15, 2019
Messages
819
Reaction score
234
I could until yesterday but now it seems that when i use my mail() function to my gmail, it just never arrives. Is there anything I should do?
 
Ask your host to check mail logs for your account
They should usually see more than you and check if your emails are getting bounce backs, rejections or etc.
 
you can use smtp instead, most of the hosting providers block mail function due to spam
 
Relying on the mail function of the host is not a good practice nowadays as they are often not configured correctly. Better use your own SMTP server or a service like Mailgun.
 
Try send to other provider maybe Gmail full block email.
 
Ok thank you guys, no im not using wordpress, i only use the mail() from a php file.
 
you need something that deliver the php mail to the destination, postfix or sendmail, if you have ssh access to your server you can install them by yourself. Usually just installing sendmailer and using default configuration of it will fix the issue (no hardcore knowledge needed)
 
Back
Top