<div dir="ltr">Hey Prasad,<br><br>Unfortunately not. It's quite odd. My custom function will send out email successfully when an invoice is created manually through the frontend, but it won't send when an invoice is created via RecurringInvoice workflow. I feel like I've tried everything at this point.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 29, 2018 at 7:30 PM, S T Prasad <span dir="ltr"><<a href="mailto:stprasad@stprasad.com" target="_blank">stprasad@stprasad.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Brock,<div><br></div><div>Thought you had this sorted out? Or was that a different issue?</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_5371179426299799638gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>With best regards,<br><br>S.T.Prasad (Skype: <a href="mailto:stprasad@stprasad.com" target="_blank">stprasad@stprasad.com</a>)</div><div>Founder and Chief Shikari<br><a href="http://www.vtigress.com" target="_blank">http://www.vtigress.com</a><br>The Purr-fect mate for vTiger<br></div><div>Certified Solution Partner for Asia and Africa</div></div></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Thu, Aug 30, 2018 at 2:22 AM, brockTM <span dir="ltr"><<a href="mailto:brock@telecommetric.com" target="_blank">brock@telecommetric.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
My goal is to build a custom function that will email each invoice to a<br>
client when they are created at the beginning of the month.<br>
<br>
The process should be pretty simple:<br>
1. Create workflow that is triggered on Invoice creation.<br>
2. Once triggered, invoke my custom function.<br>
3. My custom function uses PHPMailer to send an email to each client with an<br>
invoice associated to them.<br>
<br>
Now, the tricky part is this: The emails will send if I manually create an<br>
invoice myself. But the emails will NOT send if the invoices are created via<br>
RecurringInvoice workflow. But I need the emails to send successfully when<br>
the invoices are created via RecurringInvoice workflow! What's the<br>
difference here? I'm pulling my hair out trying to come up with something. I<br>
receive an SMTP Connect failed error. But the only difference I can see is<br>
whether the Invoices are created via RecurringInvoice or manually.<br>
<br>
Has anyone had a similar issue?<br>
Or has anyone implemented functionality like this that they'd be willing to<br>
share/explain? It's crunch time over here.<br>
<br>
Thanks everyone, any help is appreciated at this point. If anyone needs more<br>
info, I'll be happy to provide it!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtiger-crm.2324883.n4.nabble.com/vtigercrm-developers-f4.html" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.n<wbr>abble.com/vtigercrm-developers<wbr>-f4.html</a><br>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><table width="470" style="font-size:12.8px;border-collapse:collapse;font-family:Arial"><tbody><tr><td style="border-right:2px solid rgb(0,92,153)"></td><td width="8"></td><td valign="middle" style="border:none;padding:0px"><table style="border-collapse:collapse"><tbody><tr><td style="border-collapse:collapse;font-size:16px;font-weight:600;padding:0px">Brock Poirier</td></tr><tr><td style="border-collapse:collapse;font-size:12px;padding:0px">Developer</td></tr><tr height="3" style="line-height:3px"><td></td></tr><tr><td style="border-collapse:collapse;font-size:12px;padding:0px"><img width="120" height="24" src="https://www.telecommetric.com/wp-content/themes/telecommetric/inc/images/logo.png" alt="Telecom Metric Inc. logo"></td></tr><tr height="3" style="line-height:3px"><td></td></tr><tr><td style="border-collapse:collapse;font-size:12px;padding:0px">t: <a href="tel:18886438395" value="+18886438393" style="color:rgb(17,85,204)" target="_blank">1.888.643.8395</a> Ext. 415</td></tr><tr><td style="border-collapse:collapse;font-size:12px;padding:0px">e: <a href="mailto:brock@telecommetric.com" style="color:rgb(17,85,204)" target="_blank">brock@telecommetric.com</a></td></tr><tr><td style="border-collapse:collapse;font-size:12px;padding:0px">w: <a href="http://www.telecommetric.com/" style="color:rgb(17,85,204)" target="_blank">www.telecommetric.com</a></td></tr><tr height="8" style="line-height:8px"><td></td></tr><tr><td style="padding:0px"><table style="border-collapse:collapse"><tbody><tr><td width="32" style="border-collapse:collapse;padding:0px"><a href="https://www.facebook.com/telecommetric/" target="_blank"><img width="28" src="https://www.telecommetric.com/wp-content/themes/telecommetric/inc/images/email-icon-fb.jpg" alt="Facebook logo"></a></td><td width="32" style="border-collapse:collapse;padding:0px"><a href="https://www.linkedin.com/company/telecommetric" target="_blank"><img width="28" src="https://www.telecommetric.com/wp-content/themes/telecommetric/inc/images/email-icon-li.jpg" alt="LinkedIn logo"></a></td><td width="32" style="border-collapse:collapse;padding:0px"><a href="https://twitter.com/telecommetric" target="_blank"><img width="28" src="https://www.telecommetric.com/wp-content/themes/telecommetric/inc/images/email-icon-tw.jpg" alt="Twitter logo"></a></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div>
</div>