Aside from the fact that you should take the suggestions others have provided about using a module that makes your life easier, not assuming your open works, scoping variables, using strict/warnings - you really should RTM when it comes to reinventing wheels.
For instance - the man page on sendmail
RFCs governing SMTP (821,822, etc)
The proper syntax for ending a message (or so I believe) is to send a single period on a line all by itself.
Cheers - L~R
In reply to Re: Help with SendMail
by Limbic~Region
in thread Help with SendMail
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |