i solve all the error already. But when i do the testing for my send mail application, the email cannot reach the recipient. here i post my code, if i code something wrong please tell me thank you. Form Code:
this is my form code. i need to go in to this page to do my key in address message body and so on and i using smtp.mail.yahoo.com as my host.
the jsp will call the bean file to send out the message. in the jsp will pass in the relevent information to sending message.
this is the bean file that use to send out the message to the recipient. please help me to figure out the problem i know you are the expert and experience in java field. i'm just the trainee in a company that first time using the java to do a program. Please Help Me Please.... [ February 13, 2006: Message edited by: Bear Bibeault ]
What does this mean? Can you connect to the email server? Is the email sent? What do you see in the log files of the email server?
Ping & DNS - updated with new look and Ping home screen widget
Joined: Jan 15, 2006
for testing purpose, i try to use the yahoo smtp host that is smtp.mail.yahoo.com. i try to send out my mail to my another account, but when i sending out and i go to check with my account, the message is not there that's mean i haven' t can send out the message. my coding is on upthere so can you please help me to check that what the problem is and should i have anything to add in to make i'm can send out the message?
Best regards, albert
Joined: Mar 22, 2005
Stuff like this is hard to get right in a JSP; I'd advise to follow Bears suggestion of using a bean or a servlet. You could also use one of any number of SMTP classes that are available on the web, instead of writing your own.
And just to nitpick: the fact that no message arrives at your account does not mean that no message was sent. That's why it's helpful to use a mail server you control for testing purposes, so you can check the log files.
Originally posted by albert sie: for testing purpose, i try to use the yahoo smtp host that is smtp.mail.yahoo.com.
Yahoo doesn't do relaying. They don't want to have people using their accounts to send out spam.
You're testing an application? So when it goes live, will you be using some other server? If so, that will be a server where you can work with the administrator to make sure it will send out your e-mail messages, right? You should get together with that administrator sooner rather than later to learn the facts of life with respect to Internet e-mail.
Otherwise your project may be in trouble. Administrators of e-mail servers don't open their systems to everybody in the world. They need to know who you are, and they need to know that you won't be sending spam. Yahoo can't do that.
Joined: Jan 15, 2006
that mean we need to setup a mail server in order to know what the error within sending ?