<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Error sending email: Language string failed to load: instantiate</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Error sending email: Language string failed to load: instantiate</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 13:21:38 +0000</pubDate>

<item>
<title>zerokom on "Error sending email: Language string failed to load: instantiate"</title>
<link>https://www.machform.com/forums/topic/error-sending-email-language-string-failed-to-load-instantiate#post-11825</link>
<pubDate>Thu, 14 Apr 2011 20:08:49 +0000</pubDate>
<dc:creator>zerokom</dc:creator>
<guid isPermaLink="false">11825@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Had the same problem. After lots of debugging I found out, that my client was using a Microsoft IIS server. The servers mailhost obviously had a problem with with the phpmailer class Machform is using. The particular problem was, that phpmailer is using a \n line ending. Microsofts mailhosts rejects those email because it can only deal with \r\n line endings in email headers. So I edited /lib/class.phpmailer.php and changed line 259 of that file into:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;var $LE = &#38;quot;\r\n&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;For some reason I had to additionally hard-code the senders adress in the function MailSend() adding a $this-&#38;gt;sender =&#34;sender@foo.bar&#34; after $toArr = split(',', $to); at line 468, because otherwise $this-&#38;gt;sender was empty and thus the mail() function not executed.&#60;/p&#62;
&#60;p&#62;Having made those two changes, everything went smooth.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Error sending email: Language string failed to load: instantiate"</title>
<link>https://www.machform.com/forums/topic/error-sending-email-language-string-failed-to-load-instantiate#post-11746</link>
<pubDate>Sun, 03 Apr 2011 12:51:47 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11746@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ok, so by default when sending an email the script simply call the mail() function which is available within PHP. &#60;/p&#62;
&#60;p&#62;In your case, the mail() function is not working for some reason. It might be being disabled by your host or the mail agent on your site is down. I suggest to contact your hosting tech support to know the actual reason.&#60;/p&#62;
&#60;p&#62;To configure your machform to use SMTP, simply edit these lines:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;define(&#38;#39;USE_SMTP&#38;#39;,false); //set this to &#38;#39;true&#38;#39; to use SMTP

define(&#38;#39;SMTP_HOST&#38;#39;,&#38;#39;localhost&#38;#39;);
define(&#38;#39;SMTP_PORT&#38;#39;,25);
define(&#38;#39;SMTP_AUTH&#38;#39;,false); //if your SMTP require authentification, set this to &#38;#39;true&#38;#39;
define(&#38;#39;SMTP_USERNAME&#38;#39;,&#38;#39;YOUR_SMTP_USERNAME&#38;#39;);
define(&#38;#39;SMTP_PASSWORD&#38;#39;,&#38;#39;YOUR_SMTP_PASSWORD&#38;#39;);
define(&#38;#39;SMTP_SECURE&#38;#39;,false);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;change the values on the right column of the define() above with the SMTP server details provided by your host.&#60;/p&#62;
&#60;p&#62;Here's an example configuration using Gmail SMTP:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;define(&#38;#39;USE_SMTP&#38;#39;,true); //set this to &#38;#39;true&#38;#39; to use SMTP

define(&#38;#39;SMTP_HOST&#38;#39;,&#38;#39;smtp.gmail.com&#38;#39;);
define(&#38;#39;SMTP_PORT&#38;#39;,587);
define(&#38;#39;SMTP_AUTH&#38;#39;,true); //if your SMTP require authentification, set this to &#38;#39;true&#38;#39;
define(&#38;#39;SMTP_USERNAME&#38;#39;,&#38;#39;example@gmail.com&#38;#39;);
define(&#38;#39;SMTP_PASSWORD&#38;#39;,&#38;#39;mypassword&#38;#39;);
define(&#38;#39;SMTP_SECURE&#38;#39;,true);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>gydesign on "Error sending email: Language string failed to load: instantiate"</title>
<link>https://www.machform.com/forums/topic/error-sending-email-language-string-failed-to-load-instantiate#post-11745</link>
<pubDate>Sun, 03 Apr 2011 03:59:41 +0000</pubDate>
<dc:creator>gydesign</dc:creator>
<guid isPermaLink="false">11745@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Can you be more specific on what is wrong with the PHP mail function?&#60;/p&#62;
&#60;p&#62;And how do I configure the machform to use SMTP server?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Error sending email: Language string failed to load: instantiate"</title>
<link>https://www.machform.com/forums/topic/error-sending-email-language-string-failed-to-load-instantiate#post-11743</link>
<pubDate>Sat, 02 Apr 2011 19:32:49 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11743@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;That error message indicate that the PHP mail function on your server is not running properly. You might want to contact your hosting tech support and let them know.&#60;/p&#62;
&#60;p&#62;Or you might want to try configuring your machform to use SMTP server.
&#60;/p&#62;</description>
</item>
<item>
<title>gydesign on "Error sending email: Language string failed to load: instantiate"</title>
<link>https://www.machform.com/forums/topic/error-sending-email-language-string-failed-to-load-instantiate#post-11741</link>
<pubDate>Sat, 02 Apr 2011 02:45:12 +0000</pubDate>
<dc:creator>gydesign</dc:creator>
<guid isPermaLink="false">11741@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am getting this message:&#60;br /&#62;
Error sending email: Language string failed to load: instantiate&#60;/p&#62;
&#60;p&#62;Can you help? Or tell me the problem if it's on the web host side?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
