Email via SMTP (Simple Mail Transfer Protocol) with Excel VBA

Sufiyan97

Well-known Member
Joined
Apr 12, 2019
Messages
1,538
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hello Everyone,

Is it possible to send e-mail with VBA via SMTP, if it is possible then I need help to create VBA for it.

Book1
A
1From
2To
3Subject
4Email Body
Sheet1
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Ok I will look at it and let you know if query, I believe I will have because I am not familiar with VBA
 
Upvote 0
Do you really want to connect directly to an SMTP server? Or is what you really want to do Send an email"?
 
Upvote 0
Do you use Outlook? It is fairly straightforward to use VBA to send an email through Outlook.

It is possible to do it other ways as well but Outlook is integrated into VBA.
 
Upvote 0
Do you use Outlook? It is fairly straightforward to use VBA to send an email through Outlook.

It is possible to do it other ways as well but Outlook is integrated into VBA.
I use outlook but I want find a way to send mail via SMPT without outlook.
 
Upvote 0
Look at CDO.


It just chucks the mail at the SMTP server

There's a recent post on it here also.

 
Upvote 0

Forum statistics

Threads
1,214,628
Messages
6,120,618
Members
448,973
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top