<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on PHP: Sending HTML Emails</title>
    <link>http://neilang.com/entries/php-sending-html-emails</link>
    <description>Neil Ang Comment Feed</description>
    <language>en-us</language>
    <generator>Symphony (build 1701)</generator>
    <item>
      <title>Neil commented on PHP: Sending HTML Emails</title>
      <link>http://neilang.com/entries/php-sending-html-emails/#comment-106</link>
      <pubDate>Wed, 12 Nov 2008 09:28:40 GMT</pubDate>
      <guid>http://neilang.com/entries/php-sending-html-emails/#comment-106</guid>
      <description>&lt;p&gt;@Pak When the message sends you need to customise the email header so it declares a HTML content type. &lt;/p&gt;
&lt;p&gt;Does the $mailer object you create have a method for altering the content type or header? That's where I would look first.&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/php-sending-html-emails/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>Pak commented on PHP: Sending HTML Emails</title>
      <link>http://neilang.com/entries/php-sending-html-emails/#comment-105</link>
      <pubDate>Wed, 12 Nov 2008 08:26:17 GMT</pubDate>
      <guid>http://neilang.com/entries/php-sending-html-emails/#comment-105</guid>
      <description>&lt;p&gt;$mailer = new COM(&amp;quot;Persits.MailSender&amp;quot;)  or die(&amp;quot;Unable to instantiate aspemail&amp;quot;);
	$smtp = &amp;quot;smtp.mydomain.com&amp;quot;;
	$from = &amp;quot;mymail@mydomain.com&amp;quot;;
	$login = &amp;quot;mymail@mydomain.com&amp;quot;;
	$pwd = &amp;quot;xxxx&amp;quot;;
	$to = &amp;quot;tomail@domain.com&amp;quot;;
	$subject = &amp;quot;My subject&amp;quot;;
	$body = &amp;quot;&lt;b&gt;Test Mail&lt;/b&gt;&amp;lt;p&amp;gt;&lt;b&gt;Thank&lt;/b&gt;&amp;quot;;&lt;/p&gt;
&lt;p&gt;	$mailer-&amp;gt;Host = $smtp;
	$mailer-&amp;gt;Username = $login;
	$mailer-&amp;gt;Password = $pwd;
	$mailer-&amp;gt;From = $from; // From address
	$mailer-&amp;gt;AddAddress($to);&lt;/p&gt;
&lt;p&gt;	$mailer-&amp;gt;Subject = $subject;
	$mailer-&amp;gt;Body = $body;
	
	$mailer-&amp;gt;Send() or die(&amp;quot;failed&amp;quot;);
	unset($mailer);&lt;/p&gt;
&lt;p&gt;
Please help How I can make this code send mail with HTML format&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/php-sending-html-emails/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>Neil commented on PHP: Sending HTML Emails</title>
      <link>http://neilang.com/entries/php-sending-html-emails/#comment-95</link>
      <pubDate>Sat, 13 Sep 2008 02:59:45 GMT</pubDate>
      <guid>http://neilang.com/entries/php-sending-html-emails/#comment-95</guid>
      <description>&lt;p&gt;@menagapriya Looks like you have set your php config to use a SMTP server that requires TLS authentication. The quickest way to get this script to work would be to use a different SMTP server.&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/php-sending-html-emails/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>menagapriya commented on PHP: Sending HTML Emails</title>
      <link>http://neilang.com/entries/php-sending-html-emails/#comment-94</link>
      <pubDate>Thu, 11 Sep 2008 12:29:06 GMT</pubDate>
      <guid>http://neilang.com/entries/php-sending-html-emails/#comment-94</guid>
      <description>&lt;p&gt;if i send like above it gives me a warning like this..
SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. 2sm502341tif.7&lt;/p&gt;
&lt;p&gt;send me a replay&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/php-sending-html-emails/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
  </channel>
</rss>
