You Can Use the most common way, by using sendmail which is on most linux/unix based servers, most commonly located at "/usr/lib/sendmail", to find out all of the locations on your linux/unix based server, in Telnet or your Shell, type "whereis sendmail", or run a perl program and use "system("whereis sendmail");"

The -oi option prevents sendmail from interpreting a line consisting of a single dot as ``end of message''. The -t option says to use the headers to decide who to send the message to. The -odq option says to put the message into the queue. This last option means your message won't be immediately delivered, which is good to use when sending a lot of mail all at once, otherwise, you may want to leave this out. Another Way to send mail, is to use the CPAN module Mail::Mailer: