Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Net::SMTP::OneLiner ======================= BLURB A friend of mine was telling me that ruby, or python, or php or something had an easier one line send mail function; and that Net::SMTP was "too hard" to use in practice. I chortled and cranked this out. In truth, a single function mail send function sounded just peachy. I even use this myself -- unless I want to do something phancy with Net::SMTP. Then again, using modules you wrote for yourself and a friend comes naturally. Whatever, -Paul (Let me know if you use this.) EXAMPLES: send_mail($to, $from, $subject, $msg); send_mail('me@domain', 'you@domain', "heyya there", "supz!?!?"); send_mail(\@your_group_list, $from, $subject, $msg, $cc, $bcc);