Send mail Using RTC sdk
I want to send mail to user when some conditions are satified. I have return operation advisor for this, in that I am checking some condition, if condition satisfied I want to send mail to user. Can anybdy tell me how can I achive this?. I am trying this using IMailerService .
|
One answer
ok.. what is the question?
here is the method definition public void sendMail(MailSender sender, String toAddress, String subject, String msg, String cc) throws MessagingException; and a sample use <p> try { IMailerService mailerService = getService(IMailerService.class); mailerService.sendMail(mailerService.getDefaultSender(), "toAddress", "subject", "msg", "cc"); } catch(Exception ex) { System.out.println("exception="+ ex.getMessage()); } </p> Comments Hi Sam,
sam detweiler
commented Dec 10 '12, 8:33 p.m.
you have to configure the server to be able to send mail at all.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.