Note that there are some explanatory texts on larger screens.

plurals
  1. POGot issue with Swift Mailer Not sending messages
    primarykey
    data
    text
    <p>I have an issue with swift mailer, it is not sending message to the user I extracted the library to <strong>inc</strong> folder in my website and created the following message for swift mailer to send:</p> <p><strong>NOTE:</strong> If you can suggest other solutions besides SwiftMailer, could you please leave a comment.</p> <pre><code>require_once 'inc/lib/swift_required.php'; //Create the Transport $transport = Swift_SmtpTransport::newInstance('mail.mywebsite.com', 25) -&gt;setUsername('info@mywebsite.com') -&gt;setPassword('myPassword') ; $mailer = Swift_Mailer::newInstance($transport); //Define Message Subject $message = Swift_Message::newInstance('myWebsite Registration') //e-mail from -&gt;setFrom(array('info@mywebsite.com' =&gt; 'myWebsite')) //e-mail to -&gt;setTo(array('$email1' =&gt; '$username')) //e-mail body -&gt;setBody(' Message body Here ') ; $result = $mailer-&gt;send($message); //Show user message after message has been sent include_once 'msgToUser.php'; exit(); </code></pre> <p>I tested it and I didn't get a message and I don't understand why, I followed instructions at official website: <a href="http://swiftmailer.org/docs/sending.html" rel="nofollow">http://swiftmailer.org/docs/sending.html</a></p> <p>Can anyone suggest what the problem is?</p> <p><strong>NOTE:</strong> I have used PHP <code>mail();</code> function before to send e-mails, but they were classified as spam. If possible can anyone suggest solution how to use <code>mail();</code> and make e-mails not SPAM? Please don't suggest something like: <em>use your host server instead of your domain, e.g. instead of using info@yourdomain.com use info@yourhost.com.</em></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.
 

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