My turn to ask a n00b question
I'm trying to get SFS2X to send emails from the extension - first time I've had to do this.
So I do what every good developer should do and read the docs. OK - found the code and doing a quick test
Code: Select all
IMailerService mailer = SmartFoxServer.getInstance().getMailService();
SFSEmail welcomeMail = new SFSEmail(fromEmail, toEmail, "Welcome to Frontline Tactics", "Welcome to our little cool game. \n\nTODO!!! WRITE REAL MESSAGE");
try {
mailer.sendMail(welcomeMail);
}
catch (MessagingException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
I configured the SFS server to point to 127.0.0.1 on my old Linux box running postfix. But trying to send gives me this in the mail logfile:
Code: Select all
Jul 3 14:23:01 webserver postfix/smtpd[3969]: setting up TLS connection from localhost[127.0.0.1]
Jul 3 14:23:01 webserver postfix/smtpd[3969]: SSL_accept error from localhost[127.0.0.1]: 0
Jul 3 14:23:01 webserver postfix/smtpd[3969]: warning: TLS library problem: 3969:error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown:s3_pkt.c:1057:SSL alert number 46:
Jul 3 14:23:01 webserver postfix/smtpd[3969]: lost connection after STARTTLS from localhost[127.0.0.1]
Jul 3 14:23:01 webserver postfix/smtpd[3969]: disconnect from localhost[127.0.0.1]
So it connects, but attempts to use TLS connection. And thats where I get lost. Anyone with a clue?
The server generally works from perl scripts and other java programs to send out emails. So little lost. There seems to be nowhere that I can configure SFS to not use TLS
/Thomas