• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending MAIL by Java

 
marlajee Borstone
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can some one please help me to write the java code which wil sending the mail - simple and with attachment both ?

thanks in advance...

Sect7waliMalaG
 
Ramesh Kumar Swarnkar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Here is the code sample you can use.

1. For sending a SimpleMail




2.) Mail with some attachment messages:-



regards,
Ramesh

 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Other JSE/JEE APIs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic