Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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 .

0 votes



One answer

Permanent link
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>

1 vote

Comments

Hi Sam,
  I have done same thing in my code.  It's not giving any exception, but the problem is that the email is not getting triggered. Do I need to do any server configuration settings? Any property I need to  set? SMTP configuration(like server port, server name)? .

you have to configure the server to be able to send mail at all.

see the JTS/Admin, Email configuration
server:port/jts/admin#action=com.ibm.team.repository.admin.configureMailSettings

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954

Question asked: Dec 10 '12, 7:19 a.m.

Question was seen: 5,063 times

Last updated: Dec 11 '12, 6:50 a.m.

Confirmation Cancel Confirm