Created
May 27, 2009 12:15
-
-
Save zhhz/118617 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def send_email() | |
| begin | |
| mailer = Merb::Mailer.new( | |
| :from => 'your from', | |
| # hack: Net::SMTP.send_message does not send msg to cc | |
| :to => 'your_to list', | |
| :subject => 'your subject', | |
| :text => 'content') | |
| mailer.deliver! | |
| rescue => exception | |
| Merb.logger.error(exception) | |
| end | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment