Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Maybe it is your configuration problem.</p> <p>example of phpmailer configuration is like this:</p> <pre><code>&lt;?php require 'class.phpmailer.php'; $mail = new PHPMailer; $mail-&gt;isSMTP(); // Set mailer to use SMTP $mail-&gt;Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup server $mail-&gt;SMTPAuth = true; // Enable SMTP authentication $mail-&gt;Username = 'jswan'; // SMTP username $mail-&gt;Password = 'secret'; // 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;addAttachment('/var/tmp/file.tar.gz'); // Add attachments $mail-&gt;addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name $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'; </code></pre> <p>Here the $mail->Host is the smtp mail server. Normally started with smtp.</p>
    singulars
    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.
    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