Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kanmani Karthikeyan
How to Configure SMS Gateway API in liferay
January 25, 2013 11:41 PM
Answer

Kanmani Karthikeyan

Rank: Junior Member

Posts: 25

Join Date: January 24, 2012

Recent Posts

How to Configure SMS Gateway API in liferay

If am adding calendar events liferay providers reminders option . if user select remind me by sms means where we can configure that sms gateway api mapping ?
Attachment

Attachments: SMS.png (47.3k)
Corné Aussems
RE: How to Configure SMS Gateway API in liferay
February 3, 2013 1:07 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1314

Join Date: October 3, 2006

Recent Posts

I am pretty sure SMS is not as you think of it.
It is just a SmsSn

look at CalEventLocalServiceImpl

 1
 2if (remindBy == CalEventConstants.REMIND_BY_SMS) {
 3        toAddress = contact.getSmsSn();
 4}
 5
 6....
 7
 8
 9            if ((remindBy == CalEventConstants.REMIND_BY_EMAIL) ||
10                (remindBy == CalEventConstants.REMIND_BY_SMS)) {
11
12                InternetAddress from = new InternetAddress(
13                    fromAddress, fromName);
14
15                InternetAddress to = new InternetAddress(toAddress, toName);
16
17                MailMessage message = new MailMessage(
18                    from, to, subject, body, true);
19
20                mailService.sendEmail(message);
21            }

So it just sends you an email to the SmsSn adress.
Which could be a receiver to send your user a real SMS to mobile.

An SMS Gateway could be implemented here to by overridding the service.
Kanmani Karthikeyan
RE: How to Configure SMS Gateway API in liferay
February 5, 2013 6:05 AM
Answer

Kanmani Karthikeyan

Rank: Junior Member

Posts: 25

Join Date: January 24, 2012

Recent Posts

Thank you so much Corné Aussems. Thanks for your valuable response Corné Aussems.