• Welcome to KonaKart Community Forum. Please login or sign up.
 

invoice as attachment

Started by Iruñea, January 06, 2009, 02:14:40 pm

Previous topic - Next topic

Iruñea

Hi KonaKarts!

When sending the order confirmation to a client, (generated by OrderConfirmation_en.vm), is there any way to send this like an attachment in the email?? Any idea ?

Thanks!

ReLLiK75

You could use the iText PDF java library to create the order invoice and save it to a temp folder.  Then possibly modify the email class to insert the PDF as an attachment.  If the email class can't be modified you could use the custom API classes to create a new email class that can insert the attachment for you.

Iruñea

Thanks ReLLiK75

I had a look to it and it looks it works; I create the pdf document as I want with iText and then using the Java Mail Class, I add that file as attachment and its working...

Thanks !!

ReLLiK75

No prob!  Glad I could help!  I've been digging through all the KonaKart APIs like a madman trying to figure stuff out as a I go, so I figure I'll provide whatever help I can to those who need it.