CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    May 2014

    Thumbs up E-mail with signature


    when i send mail with logo as signature at Outlook 2007
    by next code
    the photo not send at mail

    please inform me what the error in code to send photo at mail

    check attached file for final form of mail

    PHP Code:
         With Text10 
    .SelStart Len(.Text
                End With 
    .SetData Image1.Picture 
                    SendMessage Text10
    .hwndWM_PASTE0&, 0
    Dim TextImag As String 
                Dim objOutlook As Object 
                Dim objOutlookMsg As Object 
                Set objOutlook = CreateObject("Outlook.Application") 
                Set objOutlookMsg = objOutlook.CreateItem(0) 
                With objOutlookMsg 
                .To = MechanicalSection.Text 
                .CC = TIssuedEmail.Text 
    .BCC TAdministration.Text 
    '.Subject = " RRS #   " & TRRS.Text & "   Now Status Was Changed To    " & TMaintenanceSatus.Text & "  -  Approved By :  " & TApproval.Text & "   @    " & TApprovalDate.Text & " " 
                .Subject = " RRS #   " & TRRS.Text & "       " & Tworkpurpose.Text & "    -    Created by :  " & TRequestedby.Text & " Fully Approved" 
                .Body = "This is the body of message" 
                .Body = Text10.Text 
                 .Send '
    Letīs go
    Set objOutlookMsg Nothing 
                Set objOutlook 
                End With 
    have a rich textbox and i rename it text10.

    i export on it some data from database as manager department request

    and i send all this data to outlook mail - its work very well.

    but i need to add the attached logo to send as signature to mail outlook.

    as attached photo it show the mail text and logo at end of mail.

    many thanks
    Attached Images Attached Images  

  2. #2
    Join Date
    May 2014

    Re: E-mail with signature

    please i need fast answer to can complete my project

  3. #3
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: E-mail with signature

    Nobody really likes pictures in email. They can be a pain to deal with. Why not just link to a site that's online?

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    May 2014

    Re: E-mail with signature

    I'd take the image out if I were you...

  5. #5
    Join Date
    May 2014

    Re: E-mail with signature

    ok, thank you alot

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.