Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't send using PHPmailer and smtp in ubuntu/linux
    primarykey
    data
    text
    <p>Please help, i already posted a relative question regarding with this matter. I have a code that has no error and a message:</p> <pre><code>SMTP -&gt; FROM SERVER:220 itech.urc.local Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Thu, 7 Nov 2013 20:44:46 +0800 SMTP -&gt; FROM SERVER: 250-itech.urc.local Hello [192.168.56.100] 250-AUTH GSSAPI NTLM LOGIN 250-AUTH=LOGIN 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250 OK SMTP -&gt; FROM SERVER:250 2.1.0 itechweb-mail@itechglobal.com.ph....Sender OK SMTP -&gt; FROM SERVER:250 2.1.5 algie.rosario@yahoo.com SMTP -&gt; FROM SERVER:354 Start mail input; end with . SMTP -&gt; FROM SERVER:250 2.6.0 &lt;7319fa99244aea2045353a8769d0f46b@192.168.56.100&gt; Queued mail for delivery Message sent </code></pre> <p>And this is my Code:</p> <pre><code>&lt;?php include('PHPMailer_5.2.0/class.phpmailer.php'); include('PHPMailer_5.2.0/class.smtp.php'); $mail = new PHPMailer(); $body = file_get_contents('PHPMailer_5.2.0/examples/contents.html'); $body = eregi_replace("[\]",'',$body); $mail-&gt;IsSMTP(); // telling the class to use SMTP $mail-&gt;Host = "linkmpr01.urc.local"; // SMTP server $mail-&gt;SMTPDebug = 2; // enables SMTP debug information $mail-&gt;SMTPAuth = true; // enable SMTP authentication $mail-&gt;Host = "whatever.local"; // sets the SMTP server $mail-&gt;Port = 25; // set the SMTP port for the GMAIL server $mail-&gt;Username = "whatever"; // SMTP account username $mail-&gt;Password = "whatever"; // SMTP account password $mail-&gt;SetFrom('ethnicweb-mail@ethnicglobal.com.ph', 'First Last'); $mail-&gt;AddReplyTo("ethnic-mail@ethnicglobal.com.ph","First Last"); $mail-&gt;Subject = "PHPMailer Test Subject via smtp, basic with authentication"; $mail-&gt;AltBody = "To view the message, please use an HTML compatible email viewer!"; $mail-&gt;MsgHTML($body); $address = "algie.rosario@yahoo.com"; $mail-&gt;AddAddress($address, "John Doe"); $mail-&gt;AddAttachment("PHPMailer_5.2.0/examples/images/phpmailer.gif"); $mail-&gt;AddAttachment("PHPMailer_5.2.0/examples/images/phpmailer_mini.gif"); if(!$mail-&gt;Send()) { echo "Mailer Error: " . $mail-&gt;ErrorInfo; } else { echo "Message sent!"; } </code></pre> <p>This codes works fine with me, and the only problem is that it didn't send anything to the recipient. Please help. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload