Skip to content
Advertisement

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. But sometimes email was sent. Sometimes

How to set DSN (Delivery Status Notification) for PHPMailer?

I’m trying to find out how to set DSN when using PHPMailer. I know at the SMTP Protocol level, the DSN is specified after RCPT TO, e.g. RCPT TO: NOTIFY=SUCCESS,FAILURE ORCPT=rfc822;recipientemail@gmail.com Also, I will like to direct the DSN to other than the sender address if that is possible. Appreciate any pointers, thanks. Answer I discovered that PHPMailer doesn’t support

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 mailer class and an extended class as mentioned in tutorial

Advertisement