Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to this topic.

Please help me with some tutorial with SMTP and how to send mails from java with attachments.


I want some detailed tutorial on it.

Kindly help me.

In Plsql I am using this for sending mails

Then what will be my smtp port pls help.
Posted
Updated 20-Jan-12 7:18am
v3
Comments
loctrice 18-Jan-12 22:48pm    
I didn't read well enough aparently. I missed the attachments part >,<
TorstenH. 19-Jan-12 2:54am    
THIS is no Java. I know java, But THIS is no Java. It hasn't even got a open source, I can feel that. It hasn't got the spirit of a collaborated work.

My guess it that you wont even succeed in compiling this evil stuff to a jar.

Hi,

This link may help
 
Share this answer
 
and here is another one: jGuru: Fundamentals of the JavaMail API @ sun.com[^] (yes, sun.com still exists!)
It's a well written tutorial guiding you through the process.

If you want some SMTP-Server - try hMailServer[^]. It's freeware and pretty simple. Be aware of the Ban-Option for false logins - best to switch it off for development.
 
Share this answer
 
I think google will be the good place for this
Google Results
 
Share this answer
 
I have solved it using MIMEMessage parts and then joining the parts to form the complete message.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900