Note that there are some explanatory texts on larger screens.

plurals
  1. POPHPMailer wont work?
    primarykey
    data
    text
    <p>So I put all the files in and change the SMTP information but for some reason, I can not get it to work. Here is what the PHP looks like..</p> <pre><code>&lt;?php require 'phpmailer/class.phpmailer.php'; $mail = new PHPMailer; $mail-&gt;isSMTP(); // Set mailer to use SMTP $mail-&gt;Host = 'smtp.mail.yahoo.com'; // Specify main and backup server $mail-&gt;SMTPAuth = true; // Enable SMTP authentication $mail-&gt;Username = 'MYEMAILADDRESS'; // SMTP username $mail-&gt;Password = 'MYEMAILPASSWORD'; // SMTP password $mail-&gt;SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted $mail-&gt;From = 'from@example.com'; $mail-&gt;FromName = 'Mailer'; $mail-&gt;addAddress('josh@example.net', 'Josh Adams'); // Add a recipient $mail-&gt;addAddress('ellen@example.com'); // Name is optional $mail-&gt;addReplyTo('info@example.com', 'Information'); $mail-&gt;addCC('cc@example.com'); $mail-&gt;addBCC('bcc@example.com'); $mail-&gt;WordWrap = 50; // Set word wrap to 50 characters $mail-&gt;isHTML(true); // Set email format to HTML $mail-&gt;Subject = 'Here is the subject'; $mail-&gt;Body = 'This is the HTML message body &lt;b&gt;in bold!&lt;/b&gt;'; $mail-&gt;AltBody = 'This is the body in plain text for non-HTML mail clients'; if(!$mail-&gt;send()) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail-&gt;ErrorInfo; exit; } echo 'Message has been sent'; ?&gt; </code></pre> <p>And I get this error when opening the page.</p> <p>SMTP Error: Could not connect to SMTP host. Message could not be sent.Mailer Error: SMTP Error: Could not connect to SMTP host.</p> <p>Please help!</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