Note that there are some explanatory texts on larger screens.

plurals
  1. POunable to send email through PHP with POP3
    primarykey
    data
    text
    <p>I have completed writing a PHP code in order to send email with POP3. But every time I am being faced by an error</p> <blockquote> <p>[error] => Connecting to the POP3 server raised a PHP warning: [errno] => 2 [errstr] => fsockopen() [function.fsockopen]: unable to connect to pop3.yahoo.com:465 (A connection attempt failed ) SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time,</p> </blockquote> <p>Here is my code.</p> <pre><code>&lt;?php require_once('/class.phpmailer.php'); require_once('/class.pop3.php'); // required for POP before SMTP $pop = new POP3(); $pop-&gt;Authorise('pop3.yahoo.com',465,10, 'arsalansherwani@yahoo.com', '******',1); $mail = new PHPMailer(); $msg='Name'; //$body = file_get_contents('contents.html'); //$body = eregi_replace("[\]",'',$body); $address='arsalanjawed619.com'; $mail-&gt;IsSMTP(); $mail-&gt;SMTPDebug = 1; $mail-&gt;Host = 'pop3.yahoo.com'; $mail-&gt;SetFrom('arsalansherwani@yahoo.com', 'arsalan'); $mail-&gt;AddReplyTo("arsalansherwani@yahoo.com","arsalan"); $mail-&gt;Subject = "PHPMailer Test Subject via POP before SMTP, basic"; $mail-&gt;AltBody = "To view the message, please use an HTML compatible email viewer!"; $mail-&gt;MsgHTML($msg); $address = "arsalanjawed619@yahoo.com"; $mail-&gt;AddAddress($address, "arsalan"); //$mail-&gt;AddAttachment("images/phpmailer.gif"); // attachment //$mail-&gt;AddAttachment("images/phpmailer_mini.gif"); // attachment if(!$mail-&gt;Send()) { echo "Mailer Error: " . $mail-&gt;ErrorInfo; } else { echo "Message sent!"; } ?&gt; </code></pre> <p>Any help will be appreciated</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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