4 ms·
A simple, primitive way would be something like this: - connect to the stmp server of the service in question - log in with your username/password (the server
by madhouse 16y ago
A simple, primitive way would be something like this:
- connect to the stmp server of the service in question
- log in with your username/password (the server now verifies you have access; it's nothing interesting so far).
- in case one has access, the session is done as usual.
Up until this point, there's nothing else needed but a properly configured SMTP server which can authenticate against whatever database you have.
Past this point, the email would get transferred to a program, like procmail, which processes the e-mail. It digs out the contents, and whatever other meta-information it needs.
Then uses the service's API to post the message.
This is an easy way to do it, but it doesn't scale all that well. However, it's fairly simple, and can be used as a learning tool.
- zemanel 16y agonice, thanks