SMTP problem with phpmailer... it don't mail :(

the mail() function

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 10
Joined: Wed Jul 27, 2005 5:26 pm
Location: Tainan City, Taiwan

Wed Jul 27, 2005 5:36 pm

Anyone had any luck getting phpmailer to mail via SMTP. I have a very trivial program to email via my SMTP account like this:

Code: Select all

$mail = new PHPMailer();
$mail->From     = "";
$mail->FromName = "Graham Holdaway";
$mail->Host = "";
$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:

Now I know that 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 = ""; 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:
Outgoing - SMTP:

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:

User avatar
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Wed Aug 03, 2005 7:58 pm

Ups... a bit old post :)
Hunn.... i have already check the docs of PHPMailer, also with your code and didn't find nothing special.... unless some changes in the configuration file that made me think.

Well... you better visit its website. Also there must be a forum for that script related discussions.

Sorry :(
Gonçalo "gesf" Fontoura

Post Reply