Consulting

Results 1 to 4 of 4

Thread: Solved: Send from group email box?

  1. #1
    VBAX Tutor
    Joined
    Mar 2005
    Posts
    221
    Location

    Solved: Send from group email box?

    We use a group email box in outlook. The automated notifcations I use via VBA are sent using my personal email box. Is it possible to send from the "group box"?

    Snippet used to send
    [vba]
    With olMail
    '.From = "here@groupbox.com" < doesnt work?
    .To = iTo
    .cc = iCC
    .Subject = isubject
    '.HTMLBody = SheetToHTML(ThisWorkbook.Sheets(1)) 'turn sheet 1 to HTML
    .Body = iBody
    '.Display use to test view of output
    .Send
    End With
    Set olMail = Nothing
    Set OlApp = Nothing
    [/vba]

  2. #2
    VBAX Expert JP2112's Avatar
    Joined
    Oct 2008
    Location
    Astoria, NY
    Posts
    590
    Location
    Quote Originally Posted by debauch
    We use a group email box in outlook. The automated notifcations I use via VBA are sent using my personal email box. Is it possible to send from the "group box"?

    Snippet used to send
    [vba]
    With olMail
    '.From = "here@groupbox.com" < doesnt work?
    .To = iTo
    .cc = iCC
    .Subject = isubject
    '.HTMLBody = SheetToHTML(ThisWorkbook.Sheets(1)) 'turn sheet 1 to HTML
    .Body = iBody
    '.Display use to test view of output
    .Send
    End With
    Set olMail = Nothing
    Set OlApp = Nothing
    [/vba]
    Check out the SentOnBehalfOfName Property of the Mail Item.

    HTH,
    JP

  3. #3
    VBAX Tutor
    Joined
    Mar 2005
    Posts
    221
    Location
    .....I swear I tried every property BUT that one. Awesome, thanks! (worked like a charm)

  4. #4
    VBAX Expert JP2112's Avatar
    Joined
    Oct 2008
    Location
    Astoria, NY
    Posts
    590
    Location
    Glad to hear it worked!



    --JP

Posting Permissions

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