wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Sending MAIL by Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Sending MAIL by Java" Watch "Sending MAIL by Java" New topic
Author

Sending MAIL by Java

marlajee Borstone
Ranch Hand

Joined: Jun 26, 2008
Posts: 35
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

Joined: Sep 15, 2003
Posts: 84
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

Joined: Oct 27, 2005
Posts: 19653
    
  18

Moving to Other JSE/JEE APIs.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: Sending MAIL by Java
 
Similar Threads
how to implement sending mail?
problem in sending mail using jsp
Javax.mail.MessagingException
Mailing query
How to send HTML page in mail insted of text