<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHPMailer Inline String Attachment</title>
	<atom:link href="http://www.jason-palmer.com/2009/09/phpmailer-inline-string-attachment/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jason-palmer.com/2009/09/phpmailer-inline-string-attachment/</link>
	<description></description>
	<lastBuildDate>Fri, 25 Jun 2010 20:22:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Tony</title>
		<link>http://www.jason-palmer.com/2009/09/phpmailer-inline-string-attachment/comment-page-1/#comment-293</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 18 Sep 2009 00:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.jason-palmer.com/?p=54#comment-293</guid>
		<description>Hi,

In the original the attached filename contained the path (prepended) with slashed replaced by underscores so I modded the code to;

    $onlyfilename = basename($filename);
    $this-&gt;attachment[] = array(
      0 =&gt; $string,
      1 =&gt; $filename,
      2 =&gt; $onlyfilename,
      3 =&gt; $encoding,
      4 =&gt; $type,
      5 =&gt; true,  // isStringAttachment
      6 =&gt; &#039;inline&#039;,
      7 =&gt; $cid
    );</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>In the original the attached filename contained the path (prepended) with slashed replaced by underscores so I modded the code to;</p>
<p>    $onlyfilename = basename($filename);<br />
    $this-&gt;attachment[] = array(<br />
      0 =&gt; $string,<br />
      1 =&gt; $filename,<br />
      2 =&gt; $onlyfilename,<br />
      3 =&gt; $encoding,<br />
      4 =&gt; $type,<br />
      5 =&gt; true,  // isStringAttachment<br />
      6 =&gt; &#8216;inline&#8217;,<br />
      7 =&gt; $cid<br />
    );</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.414 seconds -->
<!-- Cached page served by WP-Cache -->
