email - SMTP host and port value for yahoomail -


I am working to send emails from my various accounts using Java. And I have successfully mailed from my Gmail account. Now I tried to send an email to my Yahoo friend by changing the SMTP host by changing "smtp.mail.yahoo.com" and Port Value 25. But I'm getting "SMTPendedFeedment". Can I know what I should do to do this work?

These are all values ​​which I have set in the form of properties in my code as yahoomail.

props.put ("mail.smtp.starttls.enable", "true"); Props.setProperty ("mail.transport.protocol", "smtp"); Props.put ("mail.smtp.auth", "true"); Props.setProperty ("mail.smtp.host", "smtp.mail.yahoo.com"); Props.put ("mail.smtp.port", "25"); Props.setProperty ("mail.user", "Username");

Post text "itemprop =" text ">

I believe That Yahoo! Mail uses SMTPS:

  propssetProperty ("mail.transport.protocol", "smtps"); Props.put ("mail.smtps.auth", " True "); Props.setProperty (" mail.smtps.host "," smtp.mail.yahoo.com "); Props.put (" mail.smtps.port "," 465 "); Props.setProperty (" mail ; .user "," username "); Props.setProperty (" mail.password "," password ");  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -