can i use and *.html file as the body in mailmessage class in ASP.net C#

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default can i use and *.html file as the body in mailmessage class in ASP.net C#

    i am tring to send email using mail message class in
    asp.net using C# language.
    can i use and *.html file as the body arg in mail message
    class.
    help
    bye

    khawar Guest

  2. Similar Questions and Discussions

    1. is there a way to import *.html file to message.body
      is there a way to import *.html file to message.body string element of mailmessage class without have to actually type it up. Also is the maximum...
    2. html and body tag
      Hi there, Could someone explain what the difference between the html tag and body tag is. What exactly is the purpose of the html tag Isn't...
    3. Flash nav with html body
      Right i want to make a site which uses frames.. i want the navigation at the top frame... then when a user selects something from the nav the page...
    4. MailMessage Class
      Hi, Did someone know if sending email with smtpmail.send to HOTMAIL cause any problem. My system send an automatic email to the user, but many...
    5. attach file with HTML Mime Mail class
      Hi. I'm using HTML Mime Mail class to send emails, but I have a problem trying to attach a local file to the email. I do this: $attachment =...
  3. #2

    Default Re: can i use and *.html file as the body in mailmessage class in ASP.net C#

    Yes, you can. Make sure you set the BodyFormat of the MailMessage object
    property to MailFormat.Html


    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF
    [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    "khawar" <khawar@socialcircles.com> wrote in message
    news:000b01c356ac$9e897cc0$a301280a@phx.gbl...
    > i am tring to send email using mail message class in
    > asp.net using C# language.
    > can i use and *.html file as the body arg in mail message
    > class.
    > help
    > bye
    >

    CT Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139