Hello, Am new here and first post was wondering if you could help
I am working on a shopping cart web site, and when the user log’s in, a conformation email is sent out and added to the db…
I am using PHPmailer for the first time on my Host Fatcow.
I cant seem to send email with SMTP, with a yahoo addy or gmail addy
This is the code that does not send an email
$this->objMailer = new PHPMailer();
$this->objMailer->IsSMTP();
$this->objMailer->SMTPAuth = true;
$this->objMailer->SMTPKeepAlive = true;
// $this->objMailer->SMTPDebug = 2;
$this->objMailer->Host = "smtp.mail.yahoo.co.uk";
$this->objMailer->Port = 465; // 25 587 465
$this->objMailer->Username = "[email protected]";
$this->objMailer->Password = "somepassword";
$this->objMailer->SMTPSecure ="ssl";
$this->objMailer->SetFrom("[email protected]", "Andy");
$this->objMailer->AddReplyTo("[email protected]", "Andy");
If i run this below it sends the email
$this->objMailer = new PHPMailer();
$this->objMailer->SetFrom("[email protected]", “Andy”);
$this->objMailer->AddReplyTo("[email protected]", “Andy”);
I have’nt used mailer before, do i need to edit it… Or is my Host not suitable
Thanks for any help given.