AutoHotkey Community

It is currently May 27th, 2012, 8:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: July 13th, 2004, 7:23 am 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
Single Command-Line String for a Message with Subject and Body
NOTE: The procedures that are outlined in this section assume that the you are familiar with creating the type of objects listed in the implementation list.

In order to create a preformatted and pre-addressed e-mail message, it is necessary to build a command-line string with the following parameters:
Code:
mailto:<to email>?cc=<cc email>&bcc=<bcc mail>&subject=<subject text>&body=<body text>


Where the following variable definitions apply: Variable Field Entry
--------------------------------------------------------------
<to e-mail> e-mail address to appear in the To field
<cc mail> e-mail address to appear in the CC field
<bcc mail> e-mail address to appear in the BCC field
<subject> text to appear in the Subject field
<body text> text to appear in the Body of the message


Note the position of the question mark (?) and ampersand (&) characters in the command-line syntax.

In addition to the field designations, you must use ASCII hexadecimal equivalents as variables for punctuation characters. The following variables are used to represent commonly used characters:
Code:
Space ( ) %20
Comma (,) %2C
Question Mark (?) %3F
Period (.) %2E
Exclamation Point (!) %21
Colon (:) %3A
Semicolon (;) %3B


The following is an example of a command-line for the Subject and Body text using these variables:
Code:
&subject=Hello%20World%21&body=How%20are%20you%2C%20John%3F


This command-line yields the following information:
Subject: Hello World!
Body : How are you, John?

Uses of the Command-Line String
This command-line string may be used in the following implementations:
In the Open box of the Run command line.
In the Properties of a desktop shortcut
In the Address Bar of Internet Explorer 4.0.
In the body of an Outlook Express e-mail message.
In the Hypertext Markup Language (HTML) code of a Web page.

[more...]

-----
Another topic: Send To e-mail recipient: A universal solution
-----


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 22nd, 2008, 1:56 pm 
Offline

Joined: June 24th, 2004, 1:00 am
Posts: 114
Location: Malta
Thanks all,
Very quick response
Only the % sign has to be escaped (`)

Regards
bahri


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 13th, 2009, 2:56 am 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
to save the user some work, you should allow the user to use spaces, periods, etc.
then just convert the input with some StringReplace's before it gets sent to the command line.

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Reply command
PostPosted: January 24th, 2012, 6:13 am 
Do any one have a command to reply to a message?
mailto: -- will only create a new e-mail,
but I want to write a command to reply to a mail

any answers or ideas please contact me on md_jeffs@hotmail.com

Thanks!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Aravind, Google Feedfetcher, sks, Stigg and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group