allan.thompson99
Member
- Messages
- 43
- Reaction score
- 0
- Points
- 6
Hi there,
I am not receiving emails from my x10 hosted site. the system used to work fine using the code below:-
<
The SMTP email uses Google mail servers and I don't know whether something there has changed or whether it is 'boru'....
the error message that I receive is:-
The email account on Google works fine - just doesn't receive the emails that it used to from x10hosting
Can anyone help?
Thanks in anticipation,
Allan
I am not receiving emails from my x10 hosted site. the system used to work fine using the code below:-
<
?php
require_once('../../PHPMailer_v5.1/class.phpmailer.php');
$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "tls"; // sets the prefix to the servier 'ssl' or 'tls'
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 587; // set the SMTP port for the GMAIL server 465 no longer works or 587
$mail->Username = "*****@gmail.com"; // GMAIL username
$mail->Password = "***"; // GMAIL password
The SMTP email uses Google mail servers and I don't know whether something there has changed or whether it is 'boru'....
the error message that I receive is:-
Fatal error: Uncaught exception 'phpmailerException' with message 'SMTP Error: Could not authenticate.' in /home/thompa/public_html/PHPMailer_v5.1/class.phpmailer.php:814 Stack trace: #0 /home/thompa/public_html/PHPMailer_v5.1/class.phpmailer.php(705): PHPMailer->SmtpConnect() #1 /home/thompa/public_html/PHPMailer_v5.1/class.phpmailer.php(576): PHPMailer->SmtpSend('Date: Sat, 26 M...', '--b1_db8bac6611...') #2 /home/thompa/public_html/fixtures/scorecard/sendmenscorecard.php(182): PHPMailer->Send() #3 {main} thrown in/home/thompa/public_html/PHPMailer_v5.1/class.phpmailer.php on line 814
The email account on Google works fine - just doesn't receive the emails that it used to from x10hosting
Can anyone help?
Thanks in anticipation,
Allan