Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8375117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:05:26+00:00 2026-06-09T15:05:26+00:00

Good day! I downloaded PHPMailer class from the Google code page: http://code.google.com/a/apache-extras.org/p/phpmailer/ . I’m

  • 0

Good day!

I downloaded PHPMailer class from the Google code page: http://code.google.com/a/apache-extras.org/p/phpmailer/. I’m running this with:

PHP 5.2.14 (cli) (built: Jul 27 2010 10:49:36)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

On a Windows 7 machine and I’m using the following test code:

require("PHPMailer_5.2.1/class.phpmailer.php");

$mail = new PHPMailer();  

$mail->IsSMTP();
$mail->Mailer = "smtp";
$mail->Host = "ssl://smtp.live.com";
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->Username = "some_email@hotmail.nl";
$mail->Password = "password";

$mail->From     = "some_email@hotmail.nl";
$mail->AddAddress("some_other_email@hotmail.nl");  

$mail->Subject  = "Subject";
$mail->Body     = "Hi!";

if(!$mail->Send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent.';

I’m also sure that the password and the user name are correct, but I get the following error:

Message was not sent.Mailer error: The following From address failed: some_email@hotmail.nl

What am I doing wrong?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:05:28+00:00Added an answer on June 9, 2026 at 3:05 pm

    I don’t use live.com, so I tested your script with my gmail account and it worked well. You can make sure, you have the correct Username and Password set for your live.com account. Or you can try to set $mail->SMTPSecure = ‘tls’; This works well with gmail:

    require("PHPMailer_5.2.1/class.phpmailer.php");
    $mail = new PHPMailer();  
    $mail->IsSMTP();
    $mail->Host = "smtp.gmail.com";
    $mail->Port = 465;
    $mail->SMTPAuth = true;
    $mail->SMTPSecure = 'ssl';
    $mail->Username = "yourNickname@gmail.com";
    $mail->Password = "yourPassword";
    $mail->From     = "some_email@hotmail.nl";
    $mail->AddAddress("receiver@server.ext");
    $mail->Subject  = "Subject";
    $mail->Body     = "Hi!";
    if(!$mail->Send()) {
        echo 'Message was not sent.';
        echo 'Mailer error: ' . $mail->ErrorInfo;
    } else {
        echo 'Message has been sent.';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day, I have a class that implements the LoaderCallbacks, and hence have the
Good day, I try to start new Activity from another. But it always crashed.
Good day. I'm using the WebClient class in my C# application in order to
Good day everybody! Having the following code: template<typename T, typename OutStream = std::ostream> struct
Good day! I downloaded Altova XMLSpy trial, installed FOP 0.95 and tried to perform
Good day. I decided to learn Java. I installed JDK and downloaded eclipse-java-helios-SR1-win32 for
Good day to all. I have the following setup: A page with html, js,
Good day. I got an HTML page which is small and has no scroll
Good Day I created a table, NEW_TABLE , from some of another table columns
Good day, I have a question here. I am trying to fetch image from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.