Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mailto: question

0 views
Skip to first unread message

Wayne Sheffield

unread,
Nov 2, 1999, 3:00:00 AM11/2/99
to
I have a lable that I'm using as a link to send an email. In the
underlying code, I use ShellExecute to send a "mailto:" out. I know that
I can specify subject and message text by using the ?subject and ?body
clauses.
The question is how do I embed spaces in the subject and/or body?

Thanks,
Wayne

Wayne Niddery (TeamB)

unread,
Nov 2, 1999, 3:00:00 AM11/2/99
to
Wayne Sheffield wrote in message <381ECC53...@atel.net>...

Because the fields are delimited ('?' and '&'), embedded spaces shouldn't be
a problem.

ShellExecute(Handle, 'open',
'mailto:som...@somewhere.net' +
'?cc=aaa@bbb' +
'&bcc=xxx@yyy' +
'&subject=This is the subject' +
'&body=This is the body',
nil, nil, sw_Normal);

--
Wayne Niddery - WinWright Consulting
I'm a Daddy! Curtis Tomoki Niddery, born Oct 29, 1999
RADBooks - http://members.home.net/wniddery/

Wayne Sheffield

unread,
Nov 4, 1999, 3:00:00 AM11/4/99
to
Wayne,

Thanks.

Now, I'd like to include in the body a mailto link so that user can just
click on it and have an email already addressed and with the appropriate
subject. The best I can accomplish is to get the first word in the
subject line ie "mailto:xxx@yyy?subject=This is a test" gets me an email
with a subject of "This" when I click on the resultant link.

Thanks, Wayne

"Wayne Niddery (TeamB)" wrote:
> I'm a Daddy! Curtis Tomoki Niddery, born Oct 29, 1999

Congratulations!

Al Kirk

unread,
Nov 4, 1999, 3:00:00 AM11/4/99
to
try "mailto:xxx@yyy?subject=This%20is%20a%20test"

Wayne Sheffield

unread,
Nov 5, 1999, 3:00:00 AM11/5/99
to
Al Kirk wrote:
>
> try "mailto:xxx@yyy?subject=This%20is%20a%20test"

Thanks Al. I had tried everything but that "20" after the "%".

Wayne

0 new messages