in reply to Direct SMTP send with full resolution.
The main problem you'll run into when writing your own mail script will be how to handle all the different (possibly temporary) error conditions that exist. Examples of such errors are:
As I said, just a few examples. There's way to code around all of these of course, but thankfully some very clever and diligent people have already written programs that do this. These programs are called mail servers :-) (or Mail Transfer Agents if you want to be precise). I'd recommend letting these specialist programs help you by doing what they do best, a little time spent carefully RTFMing on the MTA of your choice will surely pay off more than writing another one by yourself. As for logging, I'm partial to exim, which is very flexible in what it will log, the logs are easy to parse and you should be able to get all the information you need out of them without much effort.
|
|---|