<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Emailing not setting mime-type]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10325</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10325&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Emailing not setting mime-type.]]></description>
		<lastBuildDate>Thu, 31 Jul 2025 11:55:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43728#p43728</link>
			<description><![CDATA[<p>https://github.com/apmuthu/FA24extensions/tree/master/Extensions/mail</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 31 Jul 2025 11:55:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43728#p43728</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43727#p43727</link>
			<description><![CDATA[<p>It took me some figuring out, but I finally had time to sit down and troubleshoot why my emails were not getting to gmail and some yahoo accounts.&nbsp; </p><p>After quite a bit of testing, I did figure out that this module does work like a charm in SMTP mode:</p><p>https://github.com/apmuthu/FA24extensions</p><p>That, combined with the change to line 116 in the class.mail.inc file, allowed the emails with attachments to get through and the correct naming of the attachments.</p><p>Thank you for this post!&nbsp; I had a lot of headaches with customers not getting my attachments last year even though I would always BCC myself to confirm it had indeed been sent.</p>]]></description>
			<author><![CDATA[null@example.com (jeskremer)]]></author>
			<pubDate>Wed, 30 Jul 2025 22:56:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43727#p43727</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43228#p43228</link>
			<description><![CDATA[<p>I think mail should be the way to go normally but sometimes servers don&#039;t have their mail server setup, have deliverability issues, or people just want to send email from a Google account or something will use phpmailer.</p>]]></description>
			<author><![CDATA[null@example.com (trafficpest)]]></author>
			<pubDate>Thu, 04 Jul 2024 07:52:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43228#p43228</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43227#p43227</link>
			<description><![CDATA[<p>Was there any final decision about the mail() versus PHPmailer for the future?</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Wed, 03 Jul 2024 15:26:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43227#p43227</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43045#p43045</link>
			<description><![CDATA[<div class="quotebox"><cite>seahawk wrote:</cite><blockquote><div class="quotebox"><cite>trafficpest wrote:</cite><blockquote><p>I tested it and it works in my install (though it worked for me prior to the fix)<br />I have created a mail branch in my extensions repo again with the fix. </p><p><a href="http://%20<br />https://github.com/trafficpest/FA24extensions/tree/mail<br />"> <br />https://github.com/trafficpest/FA24ex … tree/mail<br /></a></p><br /><p>@apmuthu I didn&#039;t forget to hash the files for init this time if you want to pull such a trivial fix. lol</p></blockquote></div><br /><p>Cannot download the file.</p><p>The line 131 error on PHP 8.2 has now gone away but it has two new errors:</p><br /><p>Undefined array key 1 in file: /home/mysite/public_html/accounts/reporting/includes/class.mail.inc at line 88</p><p>trim(): Passing null to parameter #1 ($string) of type string is deprecated in file: /home/mysite/public_html/accounts/modules/mail/includes/PHPMailer/class.phpmailer.php at line 873</p><p>Seems to be quite a challenge.</p></blockquote></div><br /><p>After I updated the following bugs reported in this feed, https://frontaccounting.com/punbb/viewtopic.php?id=10451 <br />the errors disappeared.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 16 Apr 2024 08:18:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43045#p43045</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43043#p43043</link>
			<description><![CDATA[<div class="quotebox"><cite>seahawk wrote:</cite><blockquote><p>@trafficpest I am getting the following error on only one site with the same setup as three other sites with the SMTP class.mail replacement file:</p><p>TAX INVOICE IN003/2024. Sending document by email failed. Email: (it is a working email address, and the SMTP setup was checked and rechecked, but no luck in sending the invoice.)</p><p>Not sure which other file might have an impact on the sending. </p><p>I have updated FA to 2.4.18.</p><p>It is a simular issue that happened in 2013 and 2016 by searching the phrase &quot;Sending document by email called.&quot;</p></blockquote></div><br /><p>This issue on another installation is still there despite the updates.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 16 Apr 2024 07:40:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43043#p43043</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43042#p43042</link>
			<description><![CDATA[<div class="quotebox"><cite>trafficpest wrote:</cite><blockquote><p>I tested it and it works in my install (though it worked for me prior to the fix)<br />I have created a mail branch in my extensions repo again with the fix. </p><p><a href="http://%20<br />https://github.com/trafficpest/FA24extensions/tree/mail<br />"> <br />https://github.com/trafficpest/FA24ex … tree/mail<br /></a></p><br /><p>@apmuthu I didn&#039;t forget to hash the files for init this time if you want to pull such a trivial fix. lol</p></blockquote></div><br /><p>Cannot download the file.</p><p>The line 131 error on PHP 8.2 has now gone away but it has two new errors:</p><br /><p>Undefined array key 1 in file: /home/mysite/public_html/accounts/reporting/includes/class.mail.inc at line 88</p><p>trim(): Passing null to parameter #1 ($string) of type string is deprecated in file: /home/mysite/public_html/accounts/modules/mail/includes/PHPMailer/class.phpmailer.php at line 873</p><p>Seems to be quite a challenge.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 16 Apr 2024 07:39:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43042#p43042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43040#p43040</link>
			<description><![CDATA[<p>I tested it and it works in my install (though it worked for me prior to the fix)<br />I have created a mail branch in my extensions repo again with the fix. </p><p><a href="http://%20<br />https://github.com/trafficpest/FA24extensions/tree/mail<br />"> <br />https://github.com/trafficpest/FA24ex … tree/mail<br /></a></p><br /><p>@apmuthu I didn&#039;t forget to hash the files for init this time if you want to pull such a trivial fix. lol</p>]]></description>
			<author><![CDATA[null@example.com (trafficpest)]]></author>
			<pubDate>Mon, 15 Apr 2024 22:05:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43040#p43040</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43038#p43038</link>
			<description><![CDATA[<p>OK, I checked it out for you. (mind you this is not my plugin. So Im just looking through code.)</p><p>Looks like there is a typo in class.mail.inc line 131 must be some versions of php will allow defining outside of the class while others do not. (like your 3rd server) I works on mine running PHP 8.0.30</p><p>the line should read<br /></p><div class="codebox"><pre><code>$this-&gt;phpmailer-&gt;CharSet = $this-&gt;charset;</code></pre></div><p>Im guessing that should fix it. Let me know</p>]]></description>
			<author><![CDATA[null@example.com (trafficpest)]]></author>
			<pubDate>Mon, 15 Apr 2024 21:37:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43038#p43038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43033#p43033</link>
			<description><![CDATA[<p>@trafficpest I am getting the following error on only one site with the same setup as three other sites with the SMTP class.mail replacement file:</p><p>TAX INVOICE IN003/2024. Sending document by email failed. Email: (it is a working email address, and the SMTP setup was checked and rechecked, but no luck in sending the invoice.)</p><p>Not sure which other file might have an impact on the sending. </p><p>I have updated FA to 2.4.18.</p><p>It is a simular issue that happened in 2013 and 2016 by searching the phrase &quot;Sending document by email called.&quot;</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Sun, 14 Apr 2024 13:25:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43033#p43033</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43011#p43011</link>
			<description><![CDATA[<div class="quotebox"><cite>seahawk wrote:</cite><blockquote><p>On all three client sites the above SMTP Mailer setup is working.</p><p>On one site I get the following error:</p><p>Creation of dynamic property email::$phpmailerCharSet is deprecated in file: /home/mysite/public_html/accounts/reporting/includes/class.mail.inc at line 131</p><p>I have tried to redo the installation with still the same error. It is sending the email even with the error. Do not know why this is the only site with this error.</p></blockquote></div><p>This is related to php version installed, and can be easily fixed by adding declaration of property phpmailerCharSet in email class declaration.</p><p>FYI, just released FA v 2.4.18 contains a couple of bugfixes to mailer class included in FA .<br />J.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 04 Apr 2024 18:42:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43011#p43011</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43003#p43003</link>
			<description><![CDATA[<p>The strange this is despite the error, it is still sending the email as well as the Bcc emails via the smtp.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 02 Apr 2024 11:14:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43003#p43003</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43002#p43002</link>
			<description><![CDATA[<div class="quotebox"><cite>seahawk wrote:</cite><blockquote><p>On all three client sites the above SMTP Mailer setup is working.</p><p>On one site I get the following error:</p><p>Creation of dynamic property email::$phpmailerCharSet is deprecated in file: /home/mysite/public_html/accounts/reporting/includes/class.mail.inc at line 131</p><p>I have tried to redo the installation with still the same error. It is sending the email even with the error. Do not know why this is the only site with this error.</p></blockquote></div><p>The Class.mail.inc at line 131 - 142 has the following code as downloaded for use with SMTP PHPMailer:<br /></p><div class="codebox"><pre><code>    public function send() {
        $this-&gt;phpmailerCharSet = $this-&gt;charset;

        //send the message, check for errors
        if (!$this-&gt;phpmailer-&gt;send()) {
            error_log(&#039;Mailer error:&#039; . $this-&gt;phpmailer-&gt;ErrorInfo);
            //echo &quot;Mailer Error: &quot; . $this-&gt;phpmailer-&gt;ErrorInfo;
            return 0;
        } else {
            return 1;
        }
    }
}</code></pre></div><p>-----------------<br />It is the same code on other installations and none of them has this particular problem.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 02 Apr 2024 11:07:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43002#p43002</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42978#p42978</link>
			<description><![CDATA[<p>On one of the installations of FA 2.4.17 get an age-old error. Do not know why on all the other FA installations I did not get this error: Sending document by email failed. </p><p>I have redone the PHPMail installation and replacement of all the files as per instruction but the error remains. The email address is correct and the SMTP mail sending setup is correct. </p><p>I have even deleted the mail account on the server and redo the setup, still have the same error.</p><p>Got this post for the same errors https://frontaccounting.com/punbb/viewtopic.php?id=6369</p><p>I am stuck again.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Thu, 28 Mar 2024 10:58:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42978#p42978</guid>
		</item>
		<item>
			<title><![CDATA[Re: Emailing not setting mime-type]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42964#p42964</link>
			<description><![CDATA[<p>Check <a href="https://stackoverflow.com/questions/2491475/phpmailer-character-encoding-issues">this</a> out for differential encoding issues and potential use of <strong>utf8_encode()</strong>. Also check if <strong>$mail-&gt;CharSet = &quot;UTF-8&quot;;</strong> works.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 24 Mar 2024 17:55:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42964#p42964</guid>
		</item>
	</channel>
</rss>
