- Joined
- May 20, 2016
- Messages
- 149
- Points
- 28
As you know, by mail() function of PHP to send mail without authenticating SMTP (when sending mail without declaring mail address and password SMTP to send valid emails) just need to declare recipients is can send successfully and because of that, it led to your server can be blacklist by mail servers.
Therefore, some hosting providers blocked mail() function to avoid this case occur.
However, you can send mail successfully from the website by going through PHPMailer library when fully configured SMTP send mail in the form on the website to perform a valid mail action.
If your website is built from WordPress then you need to install a WP plugin and config as following
+ Log into your WordPress admin
+ Install WP Plugin
+ In Settings >> WP SMTP
At the Mail Settings select and enter the following information:
1. Using mail hosting:
2.Using Gmail:
Good luck!
Therefore, some hosting providers blocked mail() function to avoid this case occur.
However, you can send mail successfully from the website by going through PHPMailer library when fully configured SMTP send mail in the form on the website to perform a valid mail action.
If your website is built from WordPress then you need to install a WP plugin and config as following
+ Log into your WordPress admin
+ Install WP Plugin
Code:
https://wordpress.org/plugins/wp-mail-smtp/
At the Mail Settings select and enter the following information:
1. Using mail hosting:
2.Using Gmail:
Good luck!