From a link, I want to open up the user's default mail app, with an attachment attached, and the 'To' field empty, and some pre-populated text in the subject and body.
Using ActionMailer, I am able to get it to send from my gmail account, but it doesn't open up the default email app. Here are my settings in the ActionMailer::Base.smtp_settings:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:user_name => "myname",
:password => "mypassword",
:authentication => "plain",
:enable_starttls_auto => true
}
Is there a way to do this dynamically, the way href mailto does?
The href mailto tag opens up the default email, but I don't think you can add attachments.