Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to Design mail body (text format)

how to Design mail body (text format)

Scheduled Pinned Locked Moved Visual Basic
htmlcomdesignsysadmintutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahmed El Badry
    wrote on last edited by
    #1

    i want send email from smtp but i can`t convert val(RichTextBox.propeties like color & font & siz)to mail.body format or i want convert RichTextBox.propeties to html my code Dim MA As New MailMessage MA.Subject = "hi" MA.BodyFormat = MailFormat.Text MA.Body = thes is proplem i want to send my Design in RichTextBox MA.From = "ahmedbondok1982@hotmail.com" MA.To = "hakbondok@yahoo.com" SmtpMail.SmtpServer = "smtp server" SmtpMail.Send(MA) Bad English :-D soory

    Ahmed El-Badry

    J 1 Reply Last reply
    0
    • A Ahmed El Badry

      i want send email from smtp but i can`t convert val(RichTextBox.propeties like color & font & siz)to mail.body format or i want convert RichTextBox.propeties to html my code Dim MA As New MailMessage MA.Subject = "hi" MA.BodyFormat = MailFormat.Text MA.Body = thes is proplem i want to send my Design in RichTextBox MA.From = "ahmedbondok1982@hotmail.com" MA.To = "hakbondok@yahoo.com" SmtpMail.SmtpServer = "smtp server" SmtpMail.Send(MA) Bad English :-D soory

      Ahmed El-Badry

      J Offline
      J Offline
      Johan Hakkesteegt
      wrote on last edited by
      #2

      Hi Ahmed, Have you tried to use MailFormat.Html? Text formatting can not be converted to normal text, but it can easily be changed to html. The settings of the mail client of the recipient can not be controlled anyway. But if they have set it to RichText, the client should convert html without a problem, and vice versa. Johan

      My advice is free, and you may get what you paid for.

      S 1 Reply Last reply
      0
      • J Johan Hakkesteegt

        Hi Ahmed, Have you tried to use MailFormat.Html? Text formatting can not be converted to normal text, but it can easily be changed to html. The settings of the mail client of the recipient can not be controlled anyway. But if they have set it to RichText, the client should convert html without a problem, and vice versa. Johan

        My advice is free, and you may get what you paid for.

        S Offline
        S Offline
        safalmittal
        wrote on last edited by
        #3

        I want to send mail thru office outlook 2003 with vb.net 2003 with embeded images ,but mailitem.body will except a string only.I need ur help urgently. I was once able to send a mail with embeded image using system.diagnostics.process namespace where I used body=nameofimagefile. I lost that code and link and don't seem to recapture that.Thanks Please help.

        J 1 Reply Last reply
        0
        • S safalmittal

          I want to send mail thru office outlook 2003 with vb.net 2003 with embeded images ,but mailitem.body will except a string only.I need ur help urgently. I was once able to send a mail with embeded image using system.diagnostics.process namespace where I used body=nameofimagefile. I lost that code and link and don't seem to recapture that.Thanks Please help.

          J Offline
          J Offline
          Johan Hakkesteegt
          wrote on last edited by
          #4

          Sorry my friend, I have no idea how to do that. Try to post a new question on this forum, maybe someone else has the code you need. good luck, Johan

          My advice is free, and you may get what you paid for.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups