I'm using SFS2x 2.13.5 linux on Docker.
I'm working SignUpAssistant, I have set up the server extension and Postgres database already.
The registration is working properly. Create a row on database with all the information and activation code.
Code: Select all
suac.getConfig().emailResponse.isActive = true;
suac.getConfig().emailResponse.fromAddress = "contact@mydomain.com";
suac.getConfig().emailResponse.subject = "Thanks for signing up";
suac.getConfig().emailResponse.template = "AuthEmailTemplates/SignUpConfirmation.html";
But I have problem with SMTP mail server. I got
Code: Select all
WARN [pool-4-thread-1] signup.SignUpAssistant - An error occurred while sending an email to: contact@mydomain.com -- javax.mail.MessagingException: Could not connect to SMTP host: smtp.sendgrid.net, port: 25, response: 554
I tried sendgrid and mailgun also got the same error. I tried port 465 I got
Code: Select all
javax.mail.MessagingException: Could not connect to SMTP host: smtp.sendgrid.net, port: 465, response: -1
I tried using the cretencial on this website https://www.smtper.net/, sendgrid smtp server is working and able to send email.
Then I tried installing SFS2X Windows on the machine and using the same config, I also can't connect to the smtp server and got the same error just one more line.
Code: Select all
javax.mail.MessagingException: Could not connect to SMTP host: smtp.sendgrid.net, port: 465;
nested exception is:
java.net.ConnectException: Connection refused: connect
Code: Select all
javax.mail.MessagingException: Could not connect to SMTP host: smtp.sendgrid.net, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
I work on it for couple of days already, can you help me guild through the problem?
Thank you very much.