{"id":12108,"date":"2011-12-16T22:31:46","date_gmt":"2011-12-16T22:31:46","guid":{"rendered":"http:\/\/www.learnexcelmacro.com\/?p=1061"},"modified":"2022-08-17T19:31:18","modified_gmt":"2022-08-17T19:31:18","slug":"how-to-send-an-email-using-excel-macro-from-gmail-or-yahoo","status":"publish","type":"post","link":"https:\/\/vmlogger.com\/excel\/2011\/12\/how-to-send-an-email-using-excel-macro-from-gmail-or-yahoo\/","title":{"rendered":"How to Send an Email using Excel Macro from Gmail or Yahoo"},"content":{"rendered":"

[et_pb_section fb_built=”1″ admin_label=”section” _builder_version=”4.17.6″ custom_padding=”0px|0px|0px|0px|true|true” da_disable_devices=”off|off|off” global_colors_info=”{}” da_is_popup=”off” da_exit_intent=”off” da_has_close=”on” da_alt_close=”off” da_dark_close=”off” da_not_modal=”on” da_is_singular=”off” da_with_loader=”off” da_has_shadow=”on”][et_pb_row admin_label=”row” _builder_version=”4.16″ background_size=”initial” background_position=”top_left” background_repeat=”repeat” global_colors_info=”{}”][et_pb_column type=”4_4″ _builder_version=”4.16″ custom_padding=”|||” global_colors_info=”{}” custom_padding__hover=”|||”][et_pb_text _builder_version=”4.17.6″ _module_preset=”default” global_colors_info=”{}”]Dear Readers,<\/p>\n

In this article, we are going to learn how to send an email automatically by Excel Excel VBA. While executing the Excel Macro, sometimes you may need to send some Details or Results directly to your email ID or any other ID using Excel Macro. If you have some report or details which you want to send in a mail without log-in to your email account.
\nThis you are going to achieve by using CDO Object<\/strong>.<\/p>\n

What is CDO (Collaboration Data Objects)??<\/h1>\n

.
\nThis Object is basically used for Active Messaging, Enables user to Access Global Server Objects and Address List<\/strong> For more about this read this Microsoft Help<\/a>.<\/p>\n

In Microsoft Excel, to use this Object you need to Add CDO Reference.<\/p>\n

\"Add<\/a>

Add CDO Reference<\/p><\/div>\n

Note:<\/strong> Without adding this reference you can Run the below Code. For running this Code, you can use below line to create Object runtime:<\/p>\n

\nSet myMail = CreateObject("CDO.Message")\n<\/code><\/pre>\n

In this article, i will explain you 2 simple methods, to send an email by Excel VBA.<\/p>\n

\n