Results 1 to 4 of 4

Thread: Having troubles! Code for email!

  1. #1

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188

    Unhappy Having troubles! Code for email!

    I have been to PSC already.

    I'm looking for some code for sending email with multiple attachments that will work over a modem?

    Thanks!

  2. #2

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188

    Angry

    Can someone tell me why this attached code doesnt work on a modem line?

    Anyone!
    Attached Files Attached Files

  3. #3
    zchoyt
    Guest

    This works with MS Outlook

    Sub SendEmails()
    Dim objOutlook As New Outlook.Application
    Dim objOutlookMsg As Outlook.MailItem
    Dim SendList As String
    SendList = "[email protected]"


    ' Create new message
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem)

    'makes the email
    With objOutlookMsg
    .To = SendList
    .Subject = "Test Email"
    .Body = "This is a test message generated on " & Now
    .Attachments.Add "c:\test.txt"
    .Send
    End With

    ' Close Outlook instance: Important!
    Set objOutlookMsg = Nothing
    Set objOutlook = Nothing


    End Sub

  4. #4

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    thanks but i was hoping without outlook/MAPI/CDO etc.

    Cheers anyways!

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