Solved

VBA Codes required to send mail from excel via Outlook as well as ThunderBird

Posted on 2012-04-02
3
463 Views
Last Modified: 2012-05-21
Dear Experts,

I want VBA codes to send the mail from Excel file to predefined recipients . The excel file will be attached to mail.

As some of our yours are using Outlook & others are using ThunderBird hence codes shall work in both.

Please suggest.

Thanks in advance.

Nilesh.
0
Comment
Question by:tnilesh2
  • 2
3 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 37800033
I suggest code to send using the default mail client ... See www.rondebruin.nl/cdo.htm

Chris
0
 

Author Comment

by:tnilesh2
ID: 37800387
Hi Chris,
Thanks for looking into,
I already checked the link http://www.rondebruin.nl/cdo.htm.

But it does not talks about the mail merge using Thunderbird.

Now to simplify I decided to put to command buttons, one for outlook & another is for Thunderbird.

Can you please suggest codes for attaching the excel file in Thunderbird mail message.

Regards,
Nilesh.
0
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 500 total points
ID: 37800533
CEO uses the default mail client and can in addition be set to use the mail server so in what way does it not work?

If you explicitly want to mail merge then you will need to loop through the recipients in vba sending each separately as processed in the loop.

Chris
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question