This file contains 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
require 'net/sftp' | |
require 'mp3info' | |
require 'stringio' | |
io = StringIO.new | |
Net::SFTP.start('host.com', 'username', :password => 'password', :port => 22) do |sftp| | |
f = sftp.file.open("/path/to/file.mp3", "r") | |
begin |
This file contains 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
""" | |
Example code for sending emails using boto's SES module. Its main purpose is to | |
show how easy it is to build multipart text/html emails. | |
Unfortunately, at this time Amazon's SES doesn't seem to allow you to add | |
attachments to messages, but if it does in the future it would probably look | |
like the code that I've commented out below the exception. | |
The SES module of the Boto package isn't quite finalized yet, but I currently | |
have this code running using Harry Marr's implementation which is available at: |
NewerOlder