Help in launching outlook

Author Message
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)
0
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
 
 
 
#1
    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)
    0
    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
     
    #2
      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)
      0
      Could you use a codebehind with the namespace System.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...
       
      #3
        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)
        0
        I did something similar, not the same, but similar. The difference with what I did was upload a file to the server then send the mail.
        Might be able to modify, although it's in VB.Net. Should be easy enough to port over.
        http://www.visualbasicscript.com/m_48990/mpage_1/key_Mail/tm.htm#49012
         
        #4

          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2012 ASPPlayground.NET Forum Version 3.9