Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 1st, 2007, 04:26 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default javax.mail.SendFailedException

Hi,

We have a requirement by which we need to send auto generated mails to the specified mail ids.
We need to get everything from database which is happening smoothly.
We able to build the message using MimeMessage class.
But,while sending the messages to specified mail ids using Transport.send(Message),we are getting javax.mail.SendFailedException.

Can any one give me suggestions to resolve this.

We took smtp ip from our network people.

Thanks & Regards,
ramanadyv

Reply With Quote
  #2 (permalink)  
Old April 20th, 2007, 05:31 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
You might need to set the SMTP port number also and if that SMTP server needs authentication then you've to set the username and password inorder to use that SMTP server and send mails using your program.

Regards,
Rakesh

- Rakesh
Reply With Quote
  #3 (permalink)  
Old May 3rd, 2007, 03:44 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi all,

  how to send and recieve emails with attachments in java , what files or jar files and path settings and servers are required to do this task.now i had to do this task.

        explain me so simple to do this task and also explain how to configure it?
         thanks in advance


Reply With Quote
  #4 (permalink)  
Old May 3rd, 2007, 07:54 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

you've to use Java Mail API for sending mails using java. You can downlod the jar file from the following link

http://java.sun.com/products/javamail/downloads/

You can find example online, use google to get some examples.

Few links
http://www.javaworld.com/javaworld/j...-javamail.html
http://www.oop-reserch.com/cross_mail.html
http://www.vipan.com/htdocs/javamail.html

Regards,
Rakesh
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NoClassDefFoundError: javax/mail/MessagingExceptio rida BOOK: Beginning Cryptography with Java 7 May 28th, 2006 08:07 PM
javax.servlet gauravchhabra9111 Servlets 1 January 19th, 2005 03:14 AM
package javax.servlet does not exist ...HELP Jil Servlets 3 September 12th, 2004 03:58 PM
javax.servlet problem anupamda JSP Basics 2 June 23rd, 2004 09:59 PM
javax.swing on linux sunstrike Java GUI 3 July 11th, 2003 02:04 PM



All times are GMT -4. The time now is 10:17 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.