Thank you so much for you PHP script. I've been struggling with sendmail without success. I'm not mass mailing, so I think this will do the trick. Are there any issues where sockets max out or memory isn't freed, etc.? If so, can someone tell a beginner how to free it up.