<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Sending document by email failed]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6369</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6369&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sending document by email failed.]]></description>
		<lastBuildDate>Fri, 29 Jul 2016 05:35:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sending document by email failed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25881#p25881</link>
			<description><![CDATA[<p>This mod needs to be used with caution on a case by case basis as you do not want the mail recipients to get confused with mail appearing from some third party hosted FA which might point to a different domain than desired.</p><p>Anyway, thanks to your attention&nbsp; to detail for sharing the fruits of your perseverance , we have one more issue &quot;<a href="https://frontaccounting.com/fawiki/index.php?n=Devel.EMailIssues">solved</a>&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 29 Jul 2016 05:35:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25881#p25881</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending document by email failed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25872#p25872</link>
			<description><![CDATA[<p>I found that my server is limiting all emails if the email address defined in the company setup is not from the domain hosted on the same server.</p><p>I did one modification in the line 47 of /reporting/includes/class.mail.inc and my problem got solved</p><div class="quotebox"><cite>boxygen wrote:</cite><blockquote><p>//&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;header = &quot;From: $name &lt;$mail&gt;\n&quot;; Modified by Faisal to enable sending email by domain boxygen.biz<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;header = &quot;From: $name &lt;mail@boxygen.biz&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;header .= &quot;Reply-To: &lt;$mail&gt;&quot;.&quot;\n&quot;;</p></blockquote></div><p>I replaced the Line 47 with next two lines.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Wed, 27 Jul 2016 18:31:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25872#p25872</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending document by email failed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25838#p25838</link>
			<description><![CDATA[<div class="quotebox"><cite>boxygen wrote:</cite><blockquote><p>I then checked my server whether it is limiting emails or not but I found that emails are going perfectly from my server</p><p>http://my.boxygen.biz/test-email/index.html</p><p>The above is the email testing.</p></blockquote></div><p>With the above small script it is checked that server is not limiting emails due to smtp authentication. It is a simple email program with php mail function and going through perfectly on the same server and domain.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 24 Jul 2016 07:15:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25838#p25838</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending document by email failed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25836#p25836</link>
			<description><![CDATA[<p>This might be your host requires smtp authentication to send e-mails</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Fri, 22 Jul 2016 13:55:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25836#p25836</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending document by email failed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25835#p25835</link>
			<description><![CDATA[<p>Lines 1029-1040 of the the <strong>function End()</strong> in <strong>reporting/includes/pdf_reports.inc</strong>:<br /></p><div class="codebox"><pre><code>     if ($mail-&gt;send()) $sent++;
 } // foreach contact
unlink($fname);
$this-&gt;SetLang(user_language());
if (!$try) {
    display_warning(sprintf(_(&quot;You have no email contact defined for this type of document for &#039;%s&#039;.&quot;), $this-&gt;formData[&#039;recipient_name&#039;]));
} elseif (!$sent)
    display_warning($this-&gt;title . &quot; &quot; . $this-&gt;formData[&#039;document_number&#039;] . &quot;. &quot;
        . _(&quot;Sending document by email failed&quot;) . &quot;. &quot; . _(&quot;Email:&quot;) . $emails);
else
    display_notification($this-&gt;title . &quot; &quot; . $this-&gt;formData[&#039;document_number&#039;] . &quot; &quot; 
        . _(&quot;has been sent by email to destination.&quot;) . &quot; &quot; . _(&quot;Email:&quot;) . $emails);</code></pre></div><p>The variable <strong>$sent</strong> is false or 0. This is because the first line above failed, ie., <strong>$mail-&gt;send()</strong> failed. It is clear that the value of <strong>$contact[&#039;email&#039;]</strong> is okay as the error clearly displays it as: <em><span style="color: red">INVOICE 3. Sending document by email failed. Email: </span></em><em><span style="color: red"><a href="http://mailto:faisalayub1980@gmail.com">faisalayub1980@gmail.com</a></span></em></p><p><span style="color: black">Inspect the values of the variables: <strong>$msg</strong> and the object properties of <strong>$mail</strong> at this point and see what is missing.</span></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 22 Jul 2016 11:08:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25835#p25835</guid>
		</item>
		<item>
			<title><![CDATA[Sending document by email failed]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25834#p25834</link>
			<description><![CDATA[<p>I am unable to send Invoice through email</p><p>http://fa.boxygen.biz/fa2325/sales/customer_invoice.php?UpdatedID=19</p><p>Username: aeronvista<br />pass: usayed2005</p><p>click email invoice and you will find the error message. This is the fresh installation of FA2.3.25</p><p>Can anyone help me with the solution of this? How can I find the reason of this error?</p><p>I then checked my server whether it is limiting emails or not but I found that emails are going perfectly from my server</p><p>http://my.boxygen.biz/test-email/index.html</p><p>The above is the email testing.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Fri, 22 Jul 2016 07:44:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25834#p25834</guid>
		</item>
	</channel>
</rss>
