Hi
I have created the code to SEND an email to a BCC group from my Outlook.com email address but I want to store it in DRAFTS instead as the email has to be checked and slightly ordered each time before it is actually sent. I know how to set up the addresses in the BCC line (I have some other code, which I haven't included, to do that).
I have wasted hours and hours on this and would be so grateful for help.
I did have code that just used normal MS Outlook but after an upgrade to Windows 10, I can't get MS Outlook to work so I have re-written the code to use Outlook Live.
This is my code:
On Error GoTo sendoutlookliveemail_Click_Err
Set MyEmail = CreateObject("CDO.Message")
MyEmail.Subject = "Test"
MyEmail.To = "recipient@btinternet.com"
MyEmail.From = "sender@outlook.com"
MyEmail.TextBody = "Is this working?"
Set emailConfig = MyEmail.Configuration
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp-mail.outlook.com"
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "sender@outlook.com"
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "sender passwordl"
emailConfig.Fields.Update
MyEmail.Configuration.Fields.Update
‘This is the line that is not working
MyEmail.Save
‘So I am currently using this instead
MyEmail.Send
Set MyEmail = Nothing
sendoutlookliveemail_Click_Exit:
Exit Sub
sendoutlookliveemail_Click_Err:
MsgBox Err.Number & " " & Err.Description
Resume sendoutlookliveemail_Click_Exit
End Sub