Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...