Send Google Mail From Excel - 3 Different Options

  Рет қаралды 4,559

Excel Macro Mania

Excel Macro Mania

Күн бұрын

Пікірлер: 16
@krn14242
@krn14242 6 ай бұрын
Wow, I think I'll stick to Outlook. Thanks for the video.
@marievicibayan54
@marievicibayan54 Ай бұрын
Hi hope you see my message. how to add an attachment to Gmail using a hard-coded path/file name in VBA?
@ExcelMacroMania
@ExcelMacroMania Ай бұрын
CDOmail.Attachment "c:\data\testmail.xlsx"
@ExcelMacroMania
@ExcelMacroMania 24 күн бұрын
Check the code here: excelmacroclass.blogspot.com/2024/01/send-google-mail-from-excel-vba-macro.html That line should go inside the With block for CDOmail. With CDOmail .... .Attachment "c:\data\testmail.xlsx" .Send End With
@albertocollazo9986
@albertocollazo9986 3 ай бұрын
Could please explain how to add an attachment to gmail when the attachment is defined by a variable and not as hard coded path/filename in VBA. Example .Addattachment "c:\data\testmail.xlsx". I'm looking for something along the lines of .Addattachment path & fname & ".pdf" where both the path and fname are variables defined as strings in the macro. Thank you in advance for your help
@ExcelMacroMania
@ExcelMacroMania 3 ай бұрын
CDOmail.Attachment "c:\data\testmail.xlsx"
@albertocollazo9986
@albertocollazo9986 3 ай бұрын
@@ExcelMacroMania Thank you for your kind and timely answer
@parasgupta1786
@parasgupta1786 2 ай бұрын
Hi, this is something i have been trying to replicate. I tried using the second method from your tutorial. But unable to make it work. can you please help? I keep getting the error "Run-time error. The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available"
@ExcelMacroMania
@ExcelMacroMania 2 ай бұрын
Make sure the code is correct, there was a mistake in the video that I corrected later, maybe you didn't watch the whole video. Also, go to your google account and get the exact address of the smtp server (usually is smtp.gmail.com, but can be different). Try with other port (465 vs 25 vs other?). Make sure you have added the right references to the VBA project. There might be some restrictions in your network, etc. You can find the code here: excelmacroclass.blogspot.com/2024/01/send-google-mail-from-excel-vba-macro.html
@mohanedalwhaibi576
@mohanedalwhaibi576 2 ай бұрын
i am using an app called mail came in windows 11 how can i send through it regards
@ExcelMacroMania
@ExcelMacroMania 2 ай бұрын
I believe Mail in Windows 11 is Outlook as part of Microsoft 365, so you should be able to send an in email from Excel using the method described in the other videos (Send Mail from Excel) or this one if you manage to setup a gmail account there.
@proxyhn
@proxyhn 2 ай бұрын
How would one code this using typescript in excel?
@ExcelMacroMania
@ExcelMacroMania 2 ай бұрын
I've never used a typescript library for Excel, but there's one for JavaScript. However, I don't know why you want to do that. If you create a macro in Excel use VBA, if you create a web app, use JavaScript or TypeScript or any other.
@proxyhn
@proxyhn 2 ай бұрын
@@ExcelMacroManiathank you so much It worked! Just another question would you happen to know about how I could format the body text to add images and such
@proxyhn
@proxyhn 2 ай бұрын
⁠@@ExcelMacroManiasorry for the double comment, I figured out how to use html for images, but how would I set up the “setrequestheader” in the third example?
@ExcelMacroMania
@ExcelMacroMania Ай бұрын
@@proxyhn Here's the HTTP request for the third method (using a Google script/API): With HTTPreq .Open "POST", url, False .setRequestHeader "User-Agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" .setRequestHeader "Content-type", "text/plain" .send body End With
Conditional Formatting Based On Another Cell Excel VBA Macro
7:52
Excel Macro Mania
Рет қаралды 1 М.
Bulk Auto Emailer with Picture Signature and HTML body
25:51
PK: An Excel Expert
Рет қаралды 35 М.
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 8 МЛН
Send Multiple Emails From Excel
10:09
Excel Macro Mania
Рет қаралды 76 М.
Extract Emails In Excel (From Outlook)
6:26
Excel Macro Mania
Рет қаралды 2,8 М.
Sending Email Using the Gmail API And Java
27:27
Sebastian Daschner
Рет қаралды 46 М.
Excel VBA To Send Data From Excel Sheet To The Google Sheet
21:09
VBA Expert Online
Рет қаралды 10 М.
Sending gmail with VBA
1:07:25
Gove Allen
Рет қаралды 149
How To Automatically Send Customized Emails With Attachments Using Excel Macros
19:40
Send Personalized BULK Emails in Gmail (for FREE)!
6:50
Jeff Su
Рет қаралды 576 М.
Automated Multiple Emails with Multiple Attachments and "From" option
11:20
PK: An Excel Expert
Рет қаралды 73 М.
Google Apps Script for Beginners: Start Automating Google Sheets
8:03
Analytics with Adam
Рет қаралды 26 М.