• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send Email smtp invalid  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I m writing some code for sending an email like this:



I have this line of code which gives me the next error:

 
Dave Tolls
Ranch Hand
Posts: 2504
27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The SMTP port number is usually (always?) 25, not 8080.
 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed the port it is still failing. Someone can see any other reason?
 
Dave Tolls
Ranch Hand
Posts: 2504
27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you actually have an SMTP server running there?
 
Ron McLeod
Saloon Keeper
Posts: 1432
207
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this the same issue as your Sending email error with the ports topic? I asked the same question there as Dave is asking here; whether you actually have an SMTP server running locally. You can't connect to a server which doesn't exist.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!