Sending Email to my Draft Folder in Outlook

rholdren

Board Regular
Joined
Aug 25, 2016
Messages
140
Office Version
  1. 365
  2. 2019
Using Office 365 - I've been searching for hours and my searches seem to come up with everything except for what I have been looking for. I have a piece of code that sends an email to the address in Range F2 (currently my inbox) and works wonderfully but I was curious to see if I could also send it directly to my draft folder? My thought was if I could send it to my draft folder then I would have one last opportunity to review the email before sending it out. Any thoughts and help on this would be greatly appreciated.

Thanks

Sub Mail_Routine()

' This procedure opens Microsoft Outlook
' And based on chose fields sends emails to the email address in cell F2

Application.ScreenUpdating = False


Sheets("Mail_Template").Select
' TurnAutoYesOn '*** Add this before your email has been sent

sMailServer = "mailo2.uhc.com"
sMailFromAddress = "umr-slreporting@umr.com"

Dim OutApp As Object
Dim OutMail As Object
Dim i As Long
On Error Resume Next
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
i = Range("A1").Select

' Select the range of cells on the active worksheet.
Sheets("Mail_Template").Select
ActiveSheet.Range("A5:C25").Select

' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True

' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message is sent.

With ActiveSheet.MailEnvelope
.Item.To = Range("F2")
.Item.CC = ""
.Item.BCC = ""
.Item.Subject = Range("A2")
.Item.Body = Range("A5")
'.SentOnBehalfOfName = "UMR-StopLossMarketing@umr.com"
.Item.Send

End With

On Error GoTo 0

Set OutMail = Nothing
Set OutApp = Nothing



Sheets("Dashboard").Select
Range("G2").Value = "Sending Dates Completed"

End Sub
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,214,586
Messages
6,120,402
Members
448,958
Latest member
Hat4Life

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