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

Threaded View

  1. #1
    Join Date
    May 2014
    Posts
    8

    Thumbs up E-mail with signature

    Dears

    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
                    .
    SelLength 
                End With 
                    Clipboard
    .Clear 
                    Clipboard
    .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 
    Nothing 
                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  

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured