A
Anonymous
Guest
Anyone had any luck getting phpmailer to mail via SMTP. I have a very trivial program to email via my SMTP account like this:
When I try to send it I keep getting an error: The following From address failed: graham@ukeas.com
Now I know that graham@ukeas.com is a valid address. It seems to be when phpmailer sends out a message to test SMTP before send out the email. I tries using my yahoo account too with $mail->Host = "smtp.mail.yahoo.com"; but still no luck. It's driving me nuts!!
Anyone got any ideas? I have installed PHPTriad on my PC and am trying to email from that.... but with no luck.
My incoming mail server is: POP3
Incoming mail - POP3: pop.registeredsite.com
Outgoing - SMTP: smtp.registeredsite.com
Could this have anything to do with it? Do I need to install anything else email-wise on my PC to get this to work?
Help much appreciated :help:
Code:
$mail = new PHPMailer();
$mail->From = "graham@ukeas.com";
$mail->FromName = "Graham Holdaway";
$mail->IsSMTP();
$mail->Host = "smtp.registeredsite.com";
$mail->SMTPAuth = true;
$mail->Username = my username;
$mail->Password = my password;
When I try to send it I keep getting an error: The following From address failed: graham@ukeas.com
Now I know that graham@ukeas.com is a valid address. It seems to be when phpmailer sends out a message to test SMTP before send out the email. I tries using my yahoo account too with $mail->Host = "smtp.mail.yahoo.com"; but still no luck. It's driving me nuts!!
Anyone got any ideas? I have installed PHPTriad on my PC and am trying to email from that.... but with no luck.
My incoming mail server is: POP3
Incoming mail - POP3: pop.registeredsite.com
Outgoing - SMTP: smtp.registeredsite.com
Could this have anything to do with it? Do I need to install anything else email-wise on my PC to get this to work?
Help much appreciated :help: