• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending MAIL by Java  RSS feed

 
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
Posts: 20898
81
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
Boost this thread!