How to send email using Gmail via Excel VBA

How to send email using Gmail via Excel VBA

Dinesh Kumar Takyar

9 лет назад

87,706 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-ge8bo8ss7v
@user-ge8bo8ss7v - 25.07.2023 12:57

Is it possible to add a JPG to the bottom of the email you have created.

Ответить
@user-ul4rk6ii8f
@user-ul4rk6ii8f - 23.03.2023 15:49

send a coding as a text file

Ответить
@infotech5520
@infotech5520 - 14.11.2022 23:23

thx

Ответить
@ramkrishnarao1212
@ramkrishnarao1212 - 15.04.2022 16:06

Sir, one clarification

Ответить
@martinj9285
@martinj9285 - 20.01.2022 21:28

Dear Sir,,

Big fan of u..😇 ..I need to insert the PNG or JPG snap file into the GMAIL BODY of the Content. Like after "Hi Team,"<PNG File pasted >.......Can u plz tell me that how to insert into the gmail body?..
I am getting as a empty mail only..I am using send keys and object and Range HTML also..But no uses...!!!

Ответить
@ThotaNagasudheer
@ThotaNagasudheer - 24.07.2021 22:16

Thankyou Dinesh

Ответить
@SUR-NI-VARA
@SUR-NI-VARA - 09.06.2021 05:13

Sir, Can I have the code to pick up, email address and attachment from Excel Table Active Row 👍 Thank you in advance.👍

Ответить
@nguyenvinh2648
@nguyenvinh2648 - 15.05.2021 16:17

Dear Mr Dinesh Kumar Takyar

Best wish for you during this pandemic

i want to ask you a question, because i already copy all your code, run it Ok but gmail did not send anything. I also turn off the security, so could you please show me what happen

Thank you very much

Ответить
@muhhd123
@muhhd123 - 25.02.2021 16:01

Thank you Daniesh for the helpful video.

Ответить
@gagansingh3481
@gagansingh3481 - 10.10.2020 09:25

SIR I AM GETTING RUNTIME ERROR ON SUBJECT TELL ME THE SLOUTION PLEASE

Ответить
@anisharma7889
@anisharma7889 - 28.09.2020 20:09

Nameste Sir,
Can we schedule every mail in Gmail
And can we paste image in email body
Thanks in advance

Ответить
@niksarpate
@niksarpate - 01.08.2020 15:40

No error observed while running and no email sent. Please help

Ответить
@nitinsingh.2107
@nitinsingh.2107 - 29.06.2020 22:33

Great

Ответить
@ulludacharkha
@ulludacharkha - 02.06.2020 01:35

Dear Takyar Ji, Jai Hind ! I am getting error message at " The "SendUsing" configration value is invalid
How to resolve it ?

Ответить
@sridharkrishnappanavanerth3388
@sridharkrishnappanavanerth3388 - 11.05.2020 17:58

Sir, my file has some vba Macros, and about 5 work sheets, i only want a single file to be sent via gmail, what is the procedure sir,

Ответить
@palaksoni8341
@palaksoni8341 - 14.03.2020 20:42

Hi ,
How to send email automatically by fetching the records from Excel sheet and sent them bday wishes . Right now you have given hard coded email id

Ответить
@msg4sam546
@msg4sam546 - 03.03.2020 17:52

Hi Sir, whether we can send multiple bulk emails with different contain based on value in excel. I want to send through Gmail only.

Ответить
@v6kuchi
@v6kuchi - 15.02.2020 22:40

Hi Im trying to list the numbers of a sequence of intervals
A1 will have (13456666-13456668) and I should get the below in
A2 (13456666,13456667,13456668)
I cant get going with this, any help with automating this is appreciated

Ответить
@gunindradas8042
@gunindradas8042 - 26.11.2019 19:48

Sir how I can send multiple people and different attachment can it possible?

Ответить
@RobGoldstein
@RobGoldstein - 29.10.2019 03:07

Thank you for posting this. It is half of what I am trying to do. Is it possible to do a mail merge using Gmail with this ?

Ответить
@tanmoyd
@tanmoyd - 25.07.2019 11:06

Does it take some time to send/receive the email? I sent it and got the success message as well, but I do not see the email in my Gmail inbox.

Ответить
@Evolutiontestweekies
@Evolutiontestweekies - 16.02.2019 09:04

Can i use this concept with Mail becky application?

Ответить
@panchitomontero9051
@panchitomontero9051 - 23.01.2019 21:02

Very helpful. Thanks! I would very much be interested to implement something like this, but with multiple emails with an Excel file that contains columns with all sort of data. The emails are included in the Excel file, so it would be a row per recipient. Do you have a video for something like that?

Ответить
@amjadansaree
@amjadansaree - 11.12.2018 19:33

Hello Mr Dinesh Sir, You are my Teacher like "eklavya Guriji" for All of your Tutorials Thank you very very very much for all of your tutorial, This is really work fine

Ответить
@tensketch3455
@tensketch3455 - 19.11.2018 16:17

Hi Dinesh. I'm using an automated Excel Invoice, where i want to send email by clicking a button, and it send email through gmail to the client. When i click the send email button, Each time the Macro should capture email id from a cell in the excel invoice. I have already created a Macro for saving as PDF. PDF invoice should automatically be attached to the email. Subject will be the filename of the invoice. Anyway to do this?.

Ответить
@mukundjoshi598
@mukundjoshi598 - 05.10.2018 19:14

Hello Sir, thanks for the guidance, It's easy to understand and implement. I am stuck with one thing, so need your help if possible. I can't restrict my mail body content within certain cells, it might vary depending on the email. Hence earlier i used to send multiple emails using macro via Outlook in Excel itself, but now need to use gmail. In Outlook, mail body used to be my selection of cells in excel. I am unable to do it in Gmail. In short, Activesheet.selection needs to be my Email Body in Gmail. Kindly help. Thank you.

Ответить
@medrayan8418
@medrayan8418 - 07.08.2018 00:09

Dear Sir,
I have a lisbox filled with data ( many lines and some columns ) and i wand to send all data in listox via email. would you please assist me to do that ?
best regards

Ответить
@ianreeve3200
@ianreeve3200 - 29.07.2018 19:44

I would like to display the email before sending. Please indicate how this can be done? I have looked at the reply below but can't find the answer in the link you gave. Thanks

Ответить
@sachinshinde5997
@sachinshinde5997 - 19.07.2018 20:31

Hi Sir ...Excel cha code for sending mails via gmail along with attachment file.. please aap iska video banao...

Ответить
@eprzepiora
@eprzepiora - 19.06.2018 21:41

Thank you very much; It took me 5 mins to copy your code and integrate this within my application, This is the best piece of code I have seen for a bit. You also explained it with such clarity, Greetings from London, UK Edward

Ответить
@Santoshnikam88
@Santoshnikam88 - 13.04.2018 11:49

Thank You Sir. It worked perfectly...

Ответить
@user-fe2oh8oj2u
@user-fe2oh8oj2u - 11.02.2018 01:28

I have 2 questions:

1. How to display email before sending it ? It is important as I want to make adjustments and then click "send".
2. How to attach current open excel from which macro is written and which does not need to be saved after being emailed?

Ответить
@NirmalSingh53
@NirmalSingh53 - 30.11.2017 09:56

Sir I have tried this programme and it is working perfectly . I want to add this code with a n excel Invoice vba which goes like this "Sheet1.Range("A2:R27").ExportAsFixedFormat xlTypePDF, Filename:= _
"C:\Billing Data\new_sale_invoice" " so that my invoice should be converted into pdf as well as mailed via gmail. Would you help me please.

Ответить
@rogerearl4658
@rogerearl4658 - 08.11.2017 22:23

Will this work in Word 2016 for all clients email ?

Ответить
@satishkumarn.2613
@satishkumarn.2613 - 06.11.2017 14:33

Sir, Can we send mail by uninstalling outlook in system

Ответить
@robertheskett7923
@robertheskett7923 - 15.09.2017 20:19

Works great. Is there anyway to get a reference of cells to be the To and from, so if the addresses change you can a cell instead of modifying the script?

Ответить
@septianitrifosa9141
@septianitrifosa9141 - 10.09.2017 11:10

Hi sir. thx for the tutorial.. it works .. but I have some problem, I want to send excel sheet an cell as the body of email not as the attachment.. can u help me solve this problem and show me the code? I've tried some code but it only works for outlook... I need the code to send it with CDO message.. can u solve this? thx

Ответить
@karmegammariappan9115
@karmegammariappan9115 - 08.08.2017 06:21

Hello Sir. I need your support on my below doubt. In my Company they using gmail application as front end for Sending/Receiving emails but backside it is running in our company server. I just trying to create a macro for sending automatic email with my company SMPT name and port number but i am not able to send mail using this and also advise should i give my password in code because my username already having access to connect with our server . Could you please support me on this.

Ответить
@magibis7519
@magibis7519 - 19.07.2017 21:46

Really usefull sir

Ответить
@paulalbertweis3011
@paulalbertweis3011 - 07.07.2017 19:44

Hello... This is great dialogue.  Could someone recommend how to embed a longer Mail.TextBody where VBA can update certain verbiage as it loops though the multiple Mail.To's .  The video has a simple one liner, but I want to have many more (up to 20) Mail.TextBody lines, include closing salutation.  PLEASE HELP ME

Ответить
@tendentiousproductions9714
@tendentiousproductions9714 - 04.07.2017 18:48

This doesn't work for 2016 Office for the Mac Right?

Ответить
@tranejones1018
@tranejones1018 - 19.05.2017 12:37

hi, I would like to attach the last date modified file (automatically), how can I do that? thank in advance!!

Ответить
@septianitrifosa9141
@septianitrifosa9141 - 24.03.2017 08:32

do u know how to run macro automatcally when data entered cell?

Ответить
@yopieaprizal2327
@yopieaprizal2327 - 22.03.2017 12:01

should i activate outlook in my pc? bcs the code vwasn't working... there s no email sent in my gmail...

Ответить
@raviroshan3904
@raviroshan3904 - 06.03.2017 20:34

hi, i am just not able to send mail using this, i tried everything but its not working, the code runs and doesnt display any error but in email i dont see any send or received mail, when i remove "on error resume next" line from code then it gives error " the transport failed to connect to the server" plz help

Ответить
@depicon8042
@depicon8042 - 22.02.2017 16:55

The smtp port should be 465

Ответить
@krishnakishorepeddisetti4387
@krishnakishorepeddisetti4387 - 10.02.2017 13:51

hi Dinesh,

thank you for your wonderful tutorial. the code was working fantastic.but, is there a way where i can set the bounce back mail to my email id when the mail is not delivered. if that can be incorporated. the code is just great. right now i am not getting bounce back mails.

will be waiting your reply

thanks and regards
kishore

Ответить
@awanasetia
@awanasetia - 18.12.2016 11:28

Hello Mr Dinesh, You are my Hero :D, Thank you very much for all of your tutorial, This is really works.

Ответить