Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java API
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other JSE/JEE APIs
what is Yahoo SMTP provider setting?
H Paul
Ranch Hand
Posts: 491
5
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
email.mailHost=smtp.mail.yahoo.com email.mailPort=465 email.mailUserName=[username] email.password=[password] mail.smtp.auth=true mail.smtp.starttls.enable=true mail.debug=true <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="${email.mailHost}" /> <property name="port" value="${email.mailPort}" /> <property name="username" value="${email.mailUserName}" /> <property name="password" value="${email.password}" /> <property name="javaMailProperties"> <props> <prop key="mail.smtp.auth">${mail.smtp.auth}</prop> <prop key="mail.smtp.starttls.enable">${mail.smtp.starttls.enable}</prop> <prop key="mail.debug">${mail.debug}</prop> </props> </property> </bean>
Exception 1:
DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.mail.yahoo.com", port 465, isSSL false DEBUG SMTP: EOF: [EOF] DEBUG SMTP: could not connect to host "smtp.mail.yahoo.com", port: 465, response: -1 javax.mail.MessagingException: Could not connect to SMTP host: smtp.mail.yahoo.com, port: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:275)
Now all of a sudden Exception 2:
Caused by: java.net.UnknownHostException: smtp.mail.yahoo.com
Ulf Dittmer
Rancher
Posts: 43081
77
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have no problem pinging that server - there must be a network issue on your end.
By the way, is this a premium account? I think Yahoo calls it "Mail Plus". Only those can use POP and SMTP, IIRC.
H Paul
Ranch Hand
Posts: 491
5
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I can ping too. But NOT a premium. Is that the reason? Too bad.
(with gmail
testing
is OK)
Ulf Dittmer
Rancher
Posts: 43081
77
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Gmail != Yahoo Mail
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
send mail to user from my email
Sending mail with authentication to Exchange Server 2007
Unable to send email from gmail ...Could not connect to SMTP host: smtp.gmail.com, port: 465;
Gmail and port 465 vs. port 587
yahoo calendar access by java
More...