News for hackers. Stuff that matters.
Re:So You'd Like to Send Some Email (Through Code) by mikemccabe on Wednesday April 21, 2010 @02:45PM (#1282996)
If you use squirrelmail, you can send messages with wget. This avoids many anti-spam and configuration issues.

wget --save-cookies cookies.txt --keep-session-cookies --post-data 'login_username=username&secretkey=password' http://webmail.server.com/src/redirect.php

wget --load-cookies cookies.txt --post-data 'body=body here&send_to=recipient%40wherever.com&subject=subject here&send=1' http://webmail.server.com/src/compose.php

For a bit more, see:

http://mikemccabe.wordpress.com/2007/08/07/sending-email-wit...

There are no comments on this comment yet.