And to have an email form filled out, but not automatically sent:
UI;;WebDialog;;new(
"Email...",true,nil,200,100,300,200,false
).instance_eval {
email = "mailto;//someone@example.com"<<
"?subject=This%20is%20the%20subject"<<
"&cc=someone_else@example.com"<<
"&body=This%20is%20the%20body"
set_html(
"<!DOCTYPE html>\n<html>\n <head>\n </head>\n"<<
" <body>\n <br/>"<<
" <a id='elink' href='#{email}'>Firing an email!</a>\n"<<
" </body>\n"<<
"</html>"
)
show() {
execute_script("elink.click();")
}
}
http://en.wikipedia.org/wiki/Mailto
But there must be a registered email client for the system.
Ie, it does not work on my machine because I use browser based gmail, and never registered any email client application on this machine. (So for me two error messages popup stating there is no registered email client.)