Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2007, 04:26 AM
Authorized User
 
Join Date: Jan 2006
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

 
Old April 20th, 2007, 05:31 AM
Friend of Wrox
 
Join Date: Mar 2007
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
 
Old May 3rd, 2007, 03:44 AM
Registered User
 
Join Date: May 2007
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


 
Old May 3rd, 2007, 07:54 AM
Friend of Wrox
 
Join Date: Mar 2007
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.