Solved

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

Posted on 2012-04-02
3
461 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now