JSP - File Attachment

Hi Friends,

My name is Raman. I am from Hyderabad. I have a question about File Attachment. If any body having solution please mail to me. my mail id is ramankoduri@indya.com or ramankoduri@yahoo.com

My question is:

When some body registered in my site. I have to send his details to his mail id thru an attachment. Automatic it will be generate. Attachment is in PDF format.

If anybody knows please mail to me. I am eagerly waiting for your response.

Thanking You

Bye

Raman

[530 byte] By [ramankoduri] at [2007-9-26 5:03:10]
# 1

Assuming your question is how to send a file attachment with email message, and not how to create a PDF file...

JavaMail supports attachments by way of mutli-part messages.

Along with JavaMail download, there a complete and simple example of how to send attachments using contents of a file.

You can find this example in %JAVAMAIL_HOME%/demo/sendfile.java

neville_sequeira at 2007-6-29 19:00:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

Thank u for your response.

My question was how to send a file attachment with email message. This email was automatic generate after the user registered into my site.

I didn't understand your link. where it is available. Please give the full link. I can check it easily.

Thanking you

ramankoduri at 2007-6-29 19:00:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Download javamail from java.sun.com/products/javamailand go to the demo directory, u will find some samples
rajagopalv at 2007-6-29 19:00:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

%JAVAMAIL_HOME%/demo/sendfile.java is not a link.

What I mean is, once you download and install JavaMail, you can find an example of what you are trying to do in %JAVAMAIL_HOME%/demo/sendfile.java where %JAVAMAIL_HOME% represents the directory where you installed JvaMail.

neville_sequeira at 2007-6-29 19:00:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...