CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • Outbound SMS using SMTP protocol
Pages: [1]

Author Topic: Outbound SMS using SMTP protocol  (Read 1068 times)

nickholden

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 1
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 7
  • MySQL version: 5.5.32
  • PHP version: 5.4
Outbound SMS using SMTP protocol
November 22, 2013, 04:04:05 am
The SMS set-up page offers 'smtp' as one possible API type. But the only documentation and existing extensions I can find relate to using http APIs. Is there anyone so far successfully using smtp protocol to send SMS messages? We're looking at doing so using the NHS net service, which requires certificated secure SMTP connection, so I'd be grateful for any clues as to how we could get CiviCRM to reference the certificate as part of the transaction.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Outbound SMS using SMTP protocol
November 22, 2013, 06:04:48 am

i'm assuming u mean the provides set=up page.

Not heard of anyone doing it via SMTP. This will need to come in via a community contribution. No changes to CiviSMS for 4.5

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nickholden

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 1
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 7
  • MySQL version: 5.5.32
  • PHP version: 5.4
Re: Outbound SMS using SMTP protocol
November 22, 2013, 07:07:45 am
Hi lobo, yes, I mean the provider set-up page. I've looked at the code for the extension that provides clickatell as a provider, and the code sets $this->_apiType = "http" and then in the 'send' function looks for that attribute to be set to http in order to configure the transport mechanism correctly. Although no other values are checked for, this would appear to give the possibility of a single provider having multiple transport mechanisms, one per API protocol.

So presumably an equivalent extension written explicitly to access the SMTP interface of our SMS provider would be an acceptable way to proceed?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Outbound SMS using SMTP protocol
November 22, 2013, 07:49:16 am

yeah that should be fine. Ideally if a provider provides multiple transport mechanism, the same extension should handle all of them

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nickholden

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 1
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 7
  • MySQL version: 5.5.32
  • PHP version: 5.4
Re: Outbound SMS using SMTP protocol
December 06, 2013, 09:14:28 am
Done!  ;D

Well, my first every CiviCRM extension is live on our test server, and sending SMS messages through the NHSmail gateway.

Not sure whether any other Civi users work in the NHS, but I decided the right thing to do was to publish the extension anyway, just to get into good habits early on. Someone might have a use for it.

https://civicrm.org/extensions/nhs-email-sms-gateway-client-civisms

Suggestions, bug reports (and fixes) and all contributions welcome. It needs some documentation, of course.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Outbound SMS using SMTP protocol
December 06, 2013, 09:25:36 am

awesome :) and congrats ...

thanx for getting into the good habits early on

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • Outbound SMS using SMTP protocol

This forum was archived on 2017-11-26.