[Vtigercrm-developers] RecurringInvoice Workflow custom function will not send email.

brockTM brock at telecommetric.com
Wed Aug 29 20:52:20 GMT 2018


Hello everyone,

My goal is to build a custom function that will email each invoice to a
client when they are created at the beginning of the month.

The process should be pretty simple:
1. Create workflow that is triggered on Invoice creation.
2. Once triggered, invoke my custom function.
3. My custom function uses PHPMailer to send an email to each client with an
invoice associated to them.

Now, the tricky part is this: The emails will send if I manually create an
invoice myself. But the emails will NOT send if the invoices are created via
RecurringInvoice workflow. But I need the emails to send successfully when
the invoices are created via RecurringInvoice workflow! What's the
difference here? I'm pulling my hair out trying to come up with something. I
receive an SMTP Connect failed error. But the only difference I can see is
whether the Invoices are created via RecurringInvoice or manually.

Has anyone had a similar issue?
Or has anyone implemented functionality like this that they'd be willing to
share/explain? It's crunch time over here.

Thanks everyone, any help is appreciated at this point. If anyone needs more
info, I'll be happy to provide it!



--
Sent from: http://vtiger-crm.2324883.n4.nabble.com/vtigercrm-developers-f4.html


More information about the vtigercrm-developers mailing list