According to release notes eMailer Service is available with RC2.
My question is how to access it from inside extension and how to send an email?
Cheers, Darko
eMailer Service
You are right, there was some missing documentation about it.
The javadoc is now updated.
Quick example:
More on this in the javadoc:
http://docs2x.smartfoxserver.com/api-do ... ffice.html
The javadoc is now updated.
Quick example:
Code: Select all
Email myEmail = new SFSEmail("sender@email.com", "recipient@email.it", "Test mail", "Hello from SFS2X");
SmartFoxServer.getInstance().getMailService().sendMail(myEmail);
More on this in the javadoc:
http://docs2x.smartfoxserver.com/api-do ... ffice.html
I get the following when attempting to implement what you suggested in your quick example.
The type javax.mail.MessagingException cannot be resolved. It is indirectly referenced from required .class files
Could you provide direction on what library this is located in that I need to add to the build path?
The type javax.mail.MessagingException cannot be resolved. It is indirectly referenced from required .class files
Could you provide direction on what library this is located in that I need to add to the build path?
Re: eMailer Service
Posting for posterity. I spent an hour or so trying to use the example, debugging imports, etc.
Finally I realized it's sendMail(), not sendEmail(), so the example seems to be wrong.
Finally I realized it's sendMail(), not sendEmail(), so the example seems to be wrong.
Who is online
Users browsing this forum: No registered users and 108 guests