sriIndia
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 12/25/2005
-
Status: offline
|
Help in launching outlook
Monday, December 26, 2005 5:11 PM
( permalink)
Hi, I am developing a web application in C# .I am using VS2005 and SQL 2005 for thif.I am facing an issue in launching the outlook client.I have a results page which has the various topics and situations based on the user selections in the previous page.So this page is dynamic. Also on this page we have a create e-mail button ,which when clicked must launch the outlook client with the body same as the body of the previous mail page. I want the colours and the images of the page to come in the body of the outlook. I have the string which generates the mail page.But when I give the same string as the body for the outlook using mailto:" abc@xyz.com?subject=xxxxx&body=" document.formname.hiddenfield.value I get the body as the topics I require alng with the html tags. But I want the tage to be rendered as html so tat the user can see all the images and the colors.Here the hiddenfield has the string which generated the previous page for me.So ppl please help me out in this regard .I am totlly stuck up here. Thanks Srini
|
|
|
|
TNO
-
Total Posts
:
2094
- Scores: 36
-
Reward points
:
0
- Joined: 12/18/2004
- Location: Earth
-
Status: offline
|
RE: Help in launching outlook
Sunday, May 11, 2008 4:15 PM
( permalink)
There is no guarantee that an email client will accept html input (its a user preference). but generally speaking, escaped html seems to work well enough: <a href='mailto:name@addr.com?subject=test&body=< ;b> ;mary%20had< ;/b> ;%20a%20little%20lamb'>Foo</a> gives: mary had a little lamb Edit: Fixed escaped characters
<message edited by TNO on Tuesday, May 13, 2008 1:17 PM>
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
|
|
Shad0wz
-
Total Posts
:
5
- Scores: 0
-
Reward points
:
0
- Joined: 7/30/2008
-
Status: offline
|
RE: Help in launching outlook
Friday, August 01, 2008 5:50 AM
( permalink)
Could you use a codebehind with the namespace S ystem.Net.Mail? MailAddress ToAddress = new MailAddress("Someone@Somewhere.com"); MailAddress FromAddress = new MailAddress("Someone@Somewhere.com"); MailMessage MyMessage = new MailMessage(FromAddress, ToAddress); MyMessage.Body = "INSERT HTML HERE"; MyMessage.Subject = "Hello World"; SmtpClient MyClient = new SmtpClient(); MyClient.Host = "YOUR MAIL SERVER HERE"; MyClient.Send(MyMessage); Best of Luck, ...Shad0wz...
|
|
|
|
Rischip
-
Total Posts
:
519
- Scores: 2
-
Reward points
:
0
- Joined: 3/26/2007
-
Status: offline
|
RE: Help in launching outlook
Friday, August 15, 2008 9:33 AM
( permalink)
|
|
|
|