The Artima Developer Community
Sponsored Link

Java Answers Forum
Sending mails with attachements.

4 replies on 1 page. Most recent reply: Apr 5, 2005 12:04 AM by rengesh

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Sending mails with attachements. Posted: Feb 3, 2005 4:15 AM
Reply to this message Reply
Advertisement
I want to use a Java GUI to send mails with attachements.

The best solution would be to use the standard mail program (so I would have a copy of the mail in that program).

The simpliet way to achieve this is to use the mailto URL.

But I don't know how to append files this way.


If it doesn't work using the mailto URL, please tell me another solution.

If I have to send the mails directly to the SMTP server without the standard mail program, that would be fine, too.


John Neale

Posts: 10
Nickname: rhino
Registered: Oct, 2003

Re: Sending mails with attachements. Posted: Feb 4, 2005 5:58 AM
Reply to this message Reply
You could use the JavaMail package from Sun. The download comes with examples and it's pretty easy to format a mail and send it to an SMTP server. Adding attachments is handled via the API as well.

John Neale

Posts: 10
Nickname: rhino
Registered: Oct, 2003

Re: Sending mails with attachements. Posted: Feb 4, 2005 5:59 AM
Reply to this message Reply
See http://java.sun.com/products/javamail/ for details

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: Sending mails with attachements. Posted: Feb 7, 2005 12:22 AM
Reply to this message Reply
Thanks, I'll try it out.

rengesh

Posts: 1
Nickname: renhi
Registered: Apr, 2005

Re: Sending mails with attachements. Posted: Apr 5, 2005 12:04 AM
Reply to this message Reply
send me the coding for sending mails to me

Flat View: This topic has 4 replies on 1 page
Topic: New to Java , Please Help Previous Topic   Next Topic Topic: Convert String (IP & Port) into InetAddress

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use