Interfacing with SMTP

Interfacing with SMTP SearchSearch
Author Message
Daryl B DeShaw
New member
Username: Doggiedaddy1

Post Number: 1
Registered: 06-2010
Posted on Thursday, June 24, 2010 - 01:09 am:   

Ok, I've got the newest version (2010) and having some configuration issues since the documentation doesn't match this version.
We are putting together a contest system where sometimes people will submit by email, sometimes by sms. We need NowSMS to process the inbound messages and preferably pass them along to an smtp server where our system will process them and enter them into the database (system already exists and is working with email/smtp). POP3 is also an option for this. Additionally, we need to be able to send sms to these same numbers hopefully using the existing smtp system to send the message to NowSMS. We can tell the system to send NowSMS the outbound message by using the protocol 1234567890@sms.ourdomain.com, except it adds the outbound address into the message. We want just the message content. Instead of emailing do we actually log into the smtp server of NowSMS? What configuration steps do we need to make to achieve this?
Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2272
Registered: 08-2008
Posted on Thursday, June 24, 2010 - 10:59 pm:   

Hi Daryl,

It is possible to modify the template that is used for SMTP to e-mail translation.

Here is a description of how to modify the template:


quote:

E-mail to SMS - Add template setting to allow some minor changes to the standard SMS to e-mail format (From /Subject /Message Text) used by NowSMS. To change the SMS to e-mail format, edit MMSC.INI, and add an SMSEMailTemplate= setting to define a template for the SMS to e-mail format. The following replacement variables are supported in the template: @@FromAddress@@ (e-mail address of sender), @@FromName@@ (full name of sender), @@Subject@@ (subject of message), @@Text@@ (text of message). The default template is SMSEMailTemplate=@@FromAddress@@ /@@Subject@@ /@@Text@@




Basically, you either want:

SMSEMailTemplate=@@Subject@@ @@Text@@

or:

SMSEMailTemplate=@@Text@@



--
Des
NowSMS Support
Daryl B DeShaw
New member
Username: Doggiedaddy1

Post Number: 2
Registered: 06-2010
Posted on Friday, June 25, 2010 - 03:55 am:   

Ok, I think I have the idea here, but I don't find this file anywhere. Or anything similar. mmsctype.ini is the closed I find.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2276
Registered: 08-2008
Posted on Friday, June 25, 2010 - 04:07 am:   

In newer versions of Windows, configuration files are stored separately from program files.

Look for the ProgramData\NowSMS directory, and you should find MMSC.INI there.