Sendmail

Sendmail is a mail transfer agent (MTA) that is a well known project of the open source, free software and Unix communities, which is distributed both as free software and proprietary software.

From command line (ssh interface to Dreamhost) Type this /usr/sbin/sendmail youremail@youremaildomain.com Subject: Test Send Mail Hello World control d (this key combination of control key and d will finish the email.)

The above example will send an email with the "FROM" showing username@soldano.dreamhost.com The subject will be there. The TO will show as undisclosed-recipients:;

/usr/sbin/sendmail youremail@youremaildomain.com To: youremail@youremaildomain.com From: AnyoneYouWant@yourdomain.com Subject: Test Send Mail Hello World control d (this key combination will finish the email.)

The above example will send an email with the "FROM" showing AnyoneYouWant@yourdomain.com The subject will be there. The TO will show as youremail@youremaildomain.com

To use sendmail in cgi/perl: First define the location of sendmail and whatever other variables you will need. $mailprog = '/usr/sbin/sendmail'; $from_address='AnyoneYouWant@yourdomain.com'; $to_address='youremail@youremaildomain.com'; open (MAIL, "|$mailprog -t $to_address") || die "Can't open $mailprog!\n"; print MAIL "To: $to_address\n"; print MAIL "From: $from_address\n"; print MAIL "Subject: Hello, self. Nice to email myself."; print MAIL "This is still subject line.\n" print MAIL "This is the body of my message.\n"; print MAIL "Pretty boring, yes?\n"; print MAIL "Goodbye.\n"; close (MAIL);