This content has been marked as final.
Show 4 replies
-
1. Re: Need Help in attaching pdf to default email client
mdesignz Jul 17, 2009 4:55 PM (in response to sasanka_n)Check the 'mail' example in the Seam source distribution. I believe it covers exactly what you're looking for.
-
2. Re: Need Help in attaching pdf to default email client
nickarls Jul 19, 2009 8:55 AM (in response to sasanka_n)Well, you can generate and send the attachment with seam mail but I'd be surprised if anyone can provide you with a solution that launches the default mailer with a pre-set attachment. It's too client-side.
-
3. Re: Need Help in attaching pdf to default email client
cash1981 Jul 19, 2009 11:56 PM (in response to sasanka_n)This is how our template looks like.
All you will have to make sure of is to use the m:attachment tag, and make sure the value is a byte array.<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="#{currContact.name}">#{currContact.email}</m:to> <m:subject>Subject goes here</m:subject> <m:attachment value="#{attachmentMailer.attachedFileData}" contentType="appl ication/pdf" fileName="#{attachmentMailer.attachedFileName}"/> <m:body> <p>Hello,</p> <p>Blatti blatti, your attachment is</p> </m:body> </m:message>
Hope this helps
-
4. Re: Need Help in attaching pdf to default email client
mdesignz Jul 20, 2009 4:39 PM (in response to sasanka_n)I think he wants his default mail client to pop up with the PDF doc already set as an attachment. Adobe Reader does this.