Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Kanmani Karthikeyan
How to Configure SMS Gateway API in liferay
25 de Janeiro de 2013 23:41
Resposta

Kanmani Karthikeyan

Ranking: Junior Member

Mensagens: 25

Data de entrada: 24 de Janeiro de 2012

Mensagens recentes

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 ?
Anexo

Anexos: SMS.png (47,3k)
Corné Aussems
RE: How to Configure SMS Gateway API in liferay
3 de Fevereiro de 2013 13:07
Resposta

Corné Aussems

Ranking: Liferay Legend

Mensagens: 1284

Data de entrada: 3 de Outubro de 2006

Mensagens recentes

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
5 de Fevereiro de 2013 06:05
Resposta

Kanmani Karthikeyan

Ranking: Junior Member

Mensagens: 25

Data de entrada: 24 de Janeiro de 2012

Mensagens recentes

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