B4J Question SMTP response 421 received. Server closed connection.

Angelo Messina

Active Member
Licensed User
Longtime User
hi all, with B4J is it possible to send simple email alerts only to one user?
i tried with the net library, but it doesn't send anything
it always comes back to me
org.apache.commons.net.smtp.SMTPConnectionClosedException: SMTP response 421 received. Server closed connection.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Yes it is possible and quite simple, you might have an error in your SMTP configuration, better to share some code hiding the sensitive information.
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
I copied the source of Erel as it was, I added user and password and Gmail.com
For gmail you need to add 3rd party apps to be able to access.


they actually give you an extra code that you will use as the password
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…