In Section 20.4.1 of our book we
describe creating an email message using the same code as
programmatically opening a browser.
The following snippet...
emailAction.setURL(
“mailto:info@qualityeclipse.com”
+ “?Subject=Question”
+ “&Body=My question is ...”
+ “%0ASecond line”
+ “%0AThird line.”);
...produces an email looking something like this:
To: info@qualityeclipse.com
Subject: Question
My question is ...
Second line
Third line.
Optional email fields include (can be specified in any order):
subject=My subject
cc=email addresses
bcc=email addresses
body=the body of my email
Special characters you can use include:
? = preceding first optional email field
& = preceding each optional email field other than the first
, = separate multiple email addresses
+ = space
%20 = space
%0A = new line
Some other web pages containing mailto syntax information:
For more information you can