Sending invoice email to customer

General Discussions
Best Practices
Examples

Sending invoice email to customer

Postby KimP » Wed Aug 10, 2011 10:55 pm

Hi

As far as we can se there is no way to have API to send the invoice to the customer, but you can get a pdf copy of the invoice.

Is there any good suggestions for how to send it automatically?

We have one (not tested) idea. Is this possible?

1. Get customer ID from order
2. Look up customer in economic and get the email address (as far as we can se that is not possible so we will use like EAN field for email address)
3. Then build a send function to fill in email address in and attach pdf file to it.

It is realy annoying that API don't support this :x


Mvh
Kim
-
KimP
 
Posts: 1
Joined: Wed Aug 10, 2011 7:55 pm

Re: Sending invoice email to customer

Postby Christian Estrup » Thu Aug 11, 2011 1:21 pm

Hi Kim,

The reason we don't expose e-mail functionality is that by doing so, we'd effectively have published a publicly available, programmable mail server - thus risking being blacklisted, to the potential annoyance of thousands of customers :-)

The Debtor class does in fact expose an Email property.

I'm unsure as to whether you actually mean orders or invoices. Admittedly, this is kind of a pet peeve for me - since I see so many people completely unnecessarily going through the step of creating an order first, even though they only send the invoice to the customer. In which case you don't really need an order...

If this is the case for you as well, your best bet would obviously be to use the Invoice class' FindByNumber() or FindByOrderNumber() method.


Best regards,
Christian Estrup
Chief Architect

Image
Online accounting
User avatar
Christian Estrup
 
Posts: 245
Joined: Tue Jun 09, 2009 6:37 pm


Return to Miscellaneous



cron