Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to send this image to email/text message??? This is my basic code, Ive tried many different ways to do it, but no luck.
- uri = URI("http://open.mapquestapi.com/staticmap/v4/getplacemap?key=Fmjtd%7Cluub2gu8l9%2C25%3Do5-9uaggw&location=1200+Juliana+St,Parkersburg,WV&size=400,400&type=map&zoom=16&imagetype=jpg&showicon=red_1-1")
- image = Net::HTTP.get(uri)
- # t = File.open("map.jpg", 'wb')
- # t.write(file)
- # t.close
- smtp = Net::SMTP.new 'smtp.gmail.com', 587
- smtp.enable_starttls()
- smtp.finish()
Advertisement
Add Comment
Please, Sign In to add comment