Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Disclosure: I'm one of the developers behind AlphaMail</strong></p> <p>Since you have no error to go on, it's not that easy to say what the issue is here. I would therefore recommend that to manually try and connect to the SMTP-server from your server and <a href="http://www.wikihow.com/Send-Email-Using-Telnet" rel="nofollow">send the email manually</a>. This way you'll have the error in hand instead of second-guessing.</p> <p>If you don't want to do this, and just want it to "work" I would recommend that you use a Transactional Email Service such as:</p> <ul> <li><a href="http://comfirm.se/alpha-mail/" rel="nofollow">AlphaMail</a></li> <li>MailGun</li> <li>PostageApp</li> </ul> <p><strong>Why?</strong></p> <ul> <li>You don't have to think that much about email delivery.</li> <li>Statistics. Let's you track Total Sent/Clicks/Opens/Bounces.</li> <li>Often web service-based instead of SMTP. I.e. easier to handle.</li> <li>Cleaner code (at least if you use AlphaMail that separates data from presentation).</li> <li>Scalable and future proof.</li> </ul> <p>If you choose to go with AlphaMail you could use the <a href="https://github.com/comfirm/alphamail-php5-client" rel="nofollow">AlphaMail PHP-client</a>.</p> <p><strong>Example:</strong></p> <pre><code>include_once("comfirm.alphamail.client/emailservice.class.php"); $email_service = AlphaMailEmailService::create() -&gt;setServiceUrl("http://api.amail.io/v1") -&gt;setApiToken("YOUR-ACCOUNT-API-TOKEN-HERE"); $person = new stdClass(); $person-&gt;userId = "1234"; $person-&gt;firstName = "John"; $person-&gt;lastName = "Doe"; $person-&gt;dateOfBirth = 1975; $response = $email_service-&gt;queue(EmailMessagePayload::create() -&gt;setProjectId(12345) // Your AlphaMail project (determines template, options, etc) -&gt;setSender(new EmailContact("Sender Company Name", "from@example.com")) -&gt;setReceiver(new EmailContact("Joe Doe", "to@example.org")) -&gt;setBodyObject($person) // Any serializable object ); </code></pre> <p>Another advantage with AlphaMail is that you can edit your templates directly in the <a href="http://amail.io/login.php" rel="nofollow">AlphaMail Dashboard</a>, and you can format your emails using <a href="http://docs.amail.io/?section=comlang" rel="nofollow">the Comlang template language</a>.</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;b&gt;Name:&lt;/b&gt; &lt;# payload.firstName " " payload.lastName #&gt;&lt;br&gt; &lt;b&gt;Date of Birth:&lt;/b&gt; &lt;# payload.dateOfBirth #&gt;&lt;br&gt; &lt;# if (payload.userId != null) { #&gt; &lt;a href="/sign-up"&gt;Sign Up Free!&lt;/a&gt; &lt;# } else { #&gt; &lt;a href="/login?id=&lt;# payload.userId #&gt;"&gt;Sign In&lt;/a&gt; &lt;# } #&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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