Announcement

Collapse
No announcement yet.

tyring to send multiple lines in the body of an outlook email...

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • tyring to send multiple lines in the body of an outlook email...

    my email from excel works great...

    Code:
    With objMail
            .To = myemail
            .Subject = "Note from Production"
            '.Body = "...."
            '.Body = ",,,,"
          .Body = ">>>>"
    etc.
    but i want to send multiple (and different) lines in the body of the email, but i can seemingly only send one...

    ???

    thank you...

  • #2
    Re: tyring to send multiple lines in the body of an outlook email...

    Code:
    dim sMsgBody as string
    
    sMsgBody = "HI mjschukas" & vbcr & vbcr
    sMsgBody = sMsgBody & "Just wanted to let you know" & vbcr
    sMsgBody = sMsgBody & "This is how you would do it." & vbcr
    sMsgBody = sMsgBody &  "The vbcr means skip a line, and if " & vbcr
    sMsgBody = sMsgBody &  " you place to of them you will skip 2 lines." & vbcr & vbcr
    sMsgBody = sMsgBody & "Thank you," & vbcr & vbcr
    sMsgBody = sMsgBody & "John"
    
    .body = sMsgBody

    Comment


    • #3
      Re: tyring to send multiple lines in the body of an outlook email...

      Hi,

      I am looking for help to finish my vb email project. I am writing code in VB for sending email, however i am would like to make some text bold in email body. I would like to add FROM filed in email which should pick up FROM address from email code.
      Any help would appreciated.

      Regards
      Abi

      Comment


      • #4
        Re: tyring to send multiple lines in the body of an outlook email...
        Hi,

        I am looking for help to finish my vb email project. I am writing code in VB for sending email, however i am would like to make some text bold in email body. I would like to add FROM filed in email which should pick up FROM address from email code.
        Any help would appreciated.

        Regards
        Abi

        Comment

        Working...
        X