aspose file tools*
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: 19543
    
  16

Moving to Other JSE/JEE APIs.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
wood burning stoves
 
subject: Sending MAIL by Java
 
Similar Threads
Javax.mail.MessagingException
problem in sending mail using jsp
How to send HTML page in mail insted of text
Mailing query
how to implement sending mail?