This content has been marked as final.
Show 4 replies
-
1. Re: How to send the PDF in mail once i generated it.
abucs01 Sep 6, 2010 4:40 AM (in response to abucs01)Is it possible in seam ?.. yes means refer some examples.
Rgds,
Aboo -
2. Re: How to send the PDF in mail once i generated it.
abucs01 Sep 7, 2010 5:33 AM (in response to abucs01)Hi,
I cant understand what is above answer ? i see your posting is irrelevant -
3. Re: How to send the PDF in mail once i generated it.
cash1981 Sep 7, 2010 11:36 AM (in response to abucs01)If you use Seam mail you can send pdf to email like this:
attachment-email-template.xhtml:<m:message xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://jboss.com/products/seam/mail" xmlns:h="http://java.sun.com/jsf/html"> <m:from name="#{currentUser.name}" address="#{currentUser.fromEmail}" /> <m:to name="#{addressBook.currContact.name}">#{addressBook.currContact.email}</m:to> <m:subject>Info ang. din søknad</m:subject> <m:attachment value="#{attachmentMailer.attachedFileData}" contentType="application/pdf" fileName="#{attachmentMailer.attachedFileName}"/> <m:body> Here goes some body </m:body>
AttachmentMailer.attachedFileData returns the pdf as byte[]. The rest should be self explanatory
-
4. Re: How to send the PDF in mail once i generated it.
cash1981 Sep 7, 2010 11:37 AM (in response to abucs01)ofc you have to remember to close the </m:message>