+ Reply to Thread
Results 1 to 3 of 3

VBA to Send E-Mail

  1. #1
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,874

    VBA to Send E-Mail

    I found a code on a Website which helps send E-mail (File Attached).


    I Just had 3 Queries.

    1) We do not use Outlook here at office. We use some other E-Mail client (Zimbra). Can we configure that instead of Outlook.

    2) Assume if I restructure the sheet so that the E-Mail Address, CC & Bcc are in 1 row, and I have multiple rows with different customers E-Mail ids, (However Subject Line & Message Text remaining same) is it possible to create a loop so that it will send all the mails on its own?

    3) Can we include attachments. For example If I have a few excel sheets in a folder, all attachments having a unique name can some logic be applied to accah a particular file an E-Mail is being send to that specific E-Mail id to which the attachment is to be sent?
    Cheers!
    Deep Dave

  2. #2
    Registered User
    Join Date
    12-05-2012
    Location
    Crewe, Cheshire, UK
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: VBA to Send E-Mail

    I've come up against the same problem, and after Googling around for a while found that CDO reference is what I was looking for. Try searching for "send email in VBA with CDO" or something like that.

    The following code connects to a gmail account (for example), and send the email without it being displayed (therefore doesn't rely on Outlook)

    Please Login or Register  to view this content.

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,874

    Re: VBA to Send E-Mail

    Alrite thnx.. Ill try searching for it.. Cheers!

+ 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