Skip to content

Tag: smtp

phpmailer – The following SMTP Error: Data not accepted

I’m trying to figure out this issue for 6 hours. But there is nothing to make sense. Here is the scenario; There is a well formatted HTML template. Here is the array of recipients’ mails; Everything looks fine and email ready to send.Here is the phpmailer config; Everything is same when I test it.…

PHPMailer could not connect to SMTP host

getting following error: SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: No such host is known. (0) SMTP Error: Could not connect to SMTP host. There was a problem sending this mail! This is my config file setting as I have followed this PHPMailer tutorial and used…