If you want to attach multiple attachment, you will need to insert another addAttachment statement. For example With newMail .Subject = "Hello World" .From = "sender Email" .To = "recipient Email" .CC = "" .BCC = "" .TextBody = "This is a test email." .AddAttachment "directory of file1" .AddAttachment "directory of file2" .AddAttachment "directory of file3" End With
Thanks for the video. Is it true that this method will no longer be supported, but should be switched to OAuth 2.0? Do you know how to get started with this?
Unfortunately I don't know the best way to use OAuth2 protocol in VBA, but if you have some experience with Python, OAuth2 is definitely the way to go to send email with Gmail.
When my email id is wrong (i.e, not found in mail address book),the macro stops running. What can be done to prevent thia as this prevents from sending my others mails to users in the same column??
@@jiejenn Hi Jie, I am looking to attach both an image in the body (saved from a printing area in a worksheet) and a PDF as an attachment. I would love to pick your brain on this one :)
Hi.. I have more than one files to send to the same email id - One attachment per email. Can i loop through the files in the folder to send as per my expectations
Hello, Thank you for the tutorial. Also can you upload a vba tutorial on how to download attachment from Gmail in specific format and fill up the mail details in 1 excel macro file.
When i want to sent message to email address on cell in sheet what will the code be , because .To = Range("D15") dont work and this is the range off the cell
it's look's great Sir, I'm getting error when I run this code Error: The SMTP server name is required, and was not found in configuration source. I gave the same code what you gave, Can you help me on this pls
If you know any programming, you can use Microsoft Graph API to to manage your Outlook tasks. learn.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0
@@jiejenn thnak you for your reply... I entered exactly what your chatgpt instructions produced and I dont see anything missing...could the same question get 2 results for each of us?
When my email id is wrong (i.e, not found in mail address book),the macro stops running. What can be done to prevent thia as this prevents from sending my others mails to users in the same column??