This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Javamail- can't send 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 "Javamail- can Watch "Javamail- can New topic

Javamail- can't send

Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 51
Hi all ,
iam trying to send a mail in java. But iam getting an exeption like
Exception in thread "main" javax.mail.MessagingException: Unknown SMTP host..

Appreciating all help...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
How are you specifying the host?
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 51
Ohhh...Ispecified host wrongly...Now working properly... thankyou for your response Ulf Dittmer.
I agree. Here's the link:
subject: Javamail- can't send
It's not a secret anymore!