473,473 Members | 2,144 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can't bring my email body to shell.

Hi, all:

I use the code below:
/////////
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:bo********@gmail.com?
subject=testing";
p.Start();
/////

need your advice how to add body ...

I failed when I add "?body=testing", it will become a part of subject.

Thank you!
Best regards,
Boki.

Jul 30 '07 #1
2 1414
Boki,

I'm guessing you are using a url like this:

mailto:bo********@gmail.com?subject=testing?body=t esting

However, you need to do this:

mailto:bo********@gmail.com?subject=testing&body=t esting

The amperstand (&) is what you use to delimit various elements of the
email.

For more information, check out RFC 2368, which details the mailto URL
scheme:

http://www.ietf.org/rfc/rfc2368.txt
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Boki" <bo**********@gmail.comwrote in message
news:11*********************@d30g2000prg.googlegro ups.com...
Hi, all:

I use the code below:
/////////
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:bo********@gmail.com?
subject=testing";
p.Start();
/////

need your advice how to add body ...

I failed when I add "?body=testing", it will become a part of subject.

Thank you!
Best regards,
Boki.

Jul 30 '07 #2
Nicholas,

You are right, it works now, and thanks for useful link.

Boki.

On 7 31 , 1 03 , "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Boki,

I'm guessing you are using a url like this:

mailto:boki.st...@gmail.com?subject=testing?body=t esting

However, you need to do this:

mailto:boki.st...@gmail.com?subject=testing&body=t esting

The amperstand (&) is what you use to delimit various elements of the
email.

For more information, check out RFC 2368, which details the mailto URL
scheme:

http://www.ietf.org/rfc/rfc2368.txt

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"Boki" <boki.digi...@gmail.comwrote in message

news:11*********************@d30g2000prg.googlegro ups.com...
Hi, all:
I use the code below:
/////////
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:boki.st...@gmail.com?
subject=testing";
p.Start();
/////
need your advice how to add body ...
I failed when I add "?body=testing", it will become a part of subject.
Thank you!
Best regards,
Boki.

Jul 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Leo | last post by:
Hi I had asekd previously a question qith regards to running a DLL file from ASP. It was not running for me. Bo error returned, nothing, Just an empty string (when it should have not been...
3
by: Ed Sutton | last post by:
How can I show the email client UI so the user can send the attachment to the desired recipient. I get an exception if I leave the MailMessage.To property blank. Is there any way to do this? I...
2
by: Mike John | last post by:
I am trying to use the shell object to send keys to the explorer browser to run the send page funcion. I am receiving the above error only when I put my html file in the web server...
2
by: Raymond Du | last post by:
Hi, I have a ASP.Net button in a webform. What I like to do, if this button is clicked, the page should connect to a SQL server run some stored procedure, then bring up user's MS Outlook client...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
9
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
1
by: rfr | last post by:
Apparently the Transitional Doctype kills this script because the script does not make proper use of units like "px". It works well without a doctype statement. But once someone adds a...
11
by: LayneMitch via WebmasterKB.com | last post by:
Hello. This is a reference file from a book I read in which the core subject is the use of 'event listeners'. I'm trying to load the file in Firefox and it's giving me an error message: ...
4
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.