locked
Unable to send an email at hotmail from CRM RRS feed

  • Question

  • We are unable send an email from CRM at hotmail. We use google app as email host. Our CRM developed by our own developer. We able send email at every domain like yahoo, AOL and other domain except hotmail account.

    We checked our PHPMailer script and also run google smtm but nothing is working. Please help me out of this issue.

    <html>
    <head>
    <title>PHPMailer - Mail() basic test</title>
    </head>
    <body>

    <?php

    require_once('../class.phpmailer.php');

    $mail             = new PHPMailer(); // defaults to using php "mail()"


    //$mail->IsHTML(true);
    //$mail->CharSet = 'windows-1251';
    $body             = 'This is ....';


    $mail->AddReplyTo("task@mytasker.com","Mytasker1");

    //$mail->SetFrom('deep_m@outlook.com', 'Deep');
    //$mail->SetFrom('saikat_mytasker@hotmail.com', "Saikat Mallick");
    $mail->SetFrom("task@mytasker.com","Mytasker");
    $address = "saikat@mytasker.com";
    //$mail->AddAddress('saikat_mytasker@hotmail.com', "Saikat Mallick");
    $mail->AddAddress('deep_m@outlook.com', 'Deep');

    $mail->AddAddress($address, "Saikat Mallick");

    $mail->Subject    = "Mytasker 123 ...";

    $mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test

    $mail->MsgHTML($body);

    //$mail->AddAttachment("images/phpmailer.gif");      // attachment
    //$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment

    if(!$mail->Send()) {
      echo "Mailer Error: " . $mail->ErrorInfo;
    } else {
      echo "Message sent!";
    }

    ?>

    </body>
    </html>

    Wednesday, October 14, 2015 8:50 AM

All replies

  • Hello,

    This forum is related to Dynamics CRM and not custom applications developed using PHP. I'm afraid that you would not get a proper answer here so I suggest you ask your question at the StackOverflow forums.


    Dynamics CRM MVP
    My blog

    Wednesday, October 14, 2015 9:11 AM
    Moderator