-
SMTP Question
Sorry to repost, this ended up in wrong forum originally!
'm considering building an application which will send SMS text messages from an email. For example someone could send to
[email protected]
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
-
Re: SMTP Question
I've done some SMTP applications in the past, nothing major though and it was awhile ago.
It sounds like you might be familiar with the Winsock control but if not, then that's what you'll need to use.
1. Your program listens on port 25
2. You send an email from a hotmail account or something to: "+44252666783@MyIP" where MyIP is your IP address.
3. Look at the incoming data on port 25 from your program.
You can go here to get what IP address you should be using: www.showmyip.com.
If you want a DNS name to use instead of your IP address, then go to www.no-ip.com or one of those free DNS services. Then you could have something like:
[email protected]
-
Re: SMTP Question
If you are not familiar with Winsock then click on the link.