KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: Iruñea on January 06, 2009, 02:14:40 pm

Title: invoice as attachment
Post by: Iruñea on January 06, 2009, 02:14:40 pm
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!
Title: Re: invoice as attachment
Post by: ReLLiK75 on January 13, 2009, 03:59:54 pm
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.
Title: Re: invoice as attachment
Post by: Iruñea on January 14, 2009, 09:48:12 am
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 !!
Title: Re: invoice as attachment
Post by: ReLLiK75 on January 14, 2009, 07:54:20 pm
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.