For the past few days i'm trying to config PHPMailer to send emails to our new clients. Everything seems to work with imap but when i try to send to a pop3 email i don't get any error and i don't receive any email. My smtp server is under the same machine (made with VestaCP using exim4) pop3 is under dovecot.
Here is the current code:
$mail = new PHPMailer;
$mail->CharSet = 'UTF-8';
$mail->SMTPDebug = 2;
$mail->setFrom('backoffice@xdomain.lu', 'Backoffice');
$mail->addAddress('mail@pop3mail.lu'); // Add a recipient
$mail->addReplyTo('backoffice@xdomain.lu', 'Backoffice');
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Nouveau Contrat eida';
$mail->Body = '<b>body</b>;
$mail->AltBody = "body"
From what i saw i don't need to add any host server because it will use my localhost server (that is working!)
I think that i need to change some stuff on my DNS (i didn't touched it for pop3 so far since i'm not sure what to add exacly) Firewall is also working because i can telenet pop3 port.
If someone out there could give me DNS hints it would be amazing
Thank you