+ Reply to Thread
Results 1 to 4 of 4

Send and receive without display outlook application

  1. #1
    Registered User
    Join Date
    12-07-2006
    Posts
    2

    Send and receive without display outlook application

    Hi All

    i spent all morning trying to find a code example that helps me send email that are in outbox without opening Microsoft Outlook Application.
    The following code is in Excel VBA, but it does not send the email, just put it in the outbox. I know that works fine with outlook application running, but that is not the intention.
    Dim OutApp As Outlook.Application
    Dim OutMail As Outlook.MailItem

    Set OutApp = CreateObject("Outlook.Application")
    OutApp.Session.Logon
    Set OutMail = OutApp.CreateItem(0)

    With OutMail
    .To = "[email protected]"
    .Subject = "whatever"
    .Attachments.Add ActiveWorkbook.FullName
    '.Display
    .Send
    End With
    OutApp.Session.Logoff

    Set OutMail = Nothing
    Set OutApp = Nothing

    hope there is a way thruu this.

    Thanks a lot in advance
    Cal

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    All (and even more) is available at Ron's site to send email ...

    http://www.rondebruin.nl/sendmail.htm

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    12-07-2006
    Posts
    2

    Ron's site doesn't suit me

    I under Exchange Server not SMTP ?

    HELP PLEASE !!!

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi again,

    As far as I remember, using CDO to go direct AND filling in the Server name correctly, works fine ...

    HTH
    Carim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1