<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Sending document by email failed]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6369&amp;type=atom" />
	<updated>2016-07-29T05:35:51Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6369</id>
		<entry>
			<title type="html"><![CDATA[Re: Sending document by email failed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25881#p25881" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-07-29T05:35:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25881#p25881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sending document by email failed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25872#p25872" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2016-07-27T18:31:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25872#p25872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sending document by email failed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25838#p25838" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2016-07-24T07:15:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25838#p25838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sending document by email failed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25836#p25836" />
			<content type="html"><![CDATA[<p>This might be your host requires smtp authentication to send e-mails</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-07-22T13:55:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25836#p25836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sending document by email failed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25835#p25835" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-07-22T11:08:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25835#p25835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Sending document by email failed]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25834#p25834" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2016-07-22T07:44:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25834#p25834</id>
		</entry>
</feed>
