Mondeo Posted July 24, 2007 Posted July 24, 2007 I'm considering building an application which will send SMS text messages from an email. For example someone could send to +44252666783@sms.mydomain.com I also need to recieve normal smtp email through the same connection which this application would use. So i'm thinking something like this would work. 1. My application listens on port 25 for all incoming messages 2. When message comes in it checks for "sms" in the to address. If its there it processes the sms message 3. If not then it assumes its a normal smtp message and relays to the mail server which will listen on port 26 I understand how I want it to work, I just wondered if anyone had any experience with the SMTP protocol, is it easy to implement. All i'll need to do is read the TO: addresss and then, worst case scenario relay the orginal message on. Thanks Quote
Administrators PlausiblyDamp Posted July 31, 2007 Administrators Posted July 31, 2007 The appropriate RFC is SMTP, however these days there is a high possibility that you will need to emulate a server running ESMTP which is more complicated. Would it not be possible to do this the other way - have the original mail server handle all inbound e-mails and simply route any destined for the @sms.mydomain.com to your service? This way you will only need to implement the bare minimum that you need and not all the required functionality the real server implements. In fact if the existing server has the concept of a pick up folder you could get it to drop your mails into a folder as simple text files, this wouldn't require any smtp knowledge on your part at all. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Mondeo Posted August 4, 2007 Author Posted August 4, 2007 The server is Microsoft Exchange 2000. Do you know if this has the feature you mentioned? Thanks Quote
Administrators PlausiblyDamp Posted August 4, 2007 Administrators Posted August 4, 2007 It does - it uses the pickup folder specified under the IIS Admin tool for the SMTP service. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.