![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#7
|
|||
|
|||
|
I don't have outlook.
this is the code I tested prior to the code you sent me: Dim sender_email, email_message, email_message2, reply_address, sender_name As String Dim Mail As New Message Dim Cfg As Configuration On Error GoTo Error_Handling Set Cfg = Mail.Configuration 'SETUP MAIL CONFIGURATION FIELDS Cfg(cdoSendUsingMethod) = cdoSendUsingPort Cfg(cdoSMTPServer) = "SMTP.gmail.com" Cfg(cdoSMTPServerPort) = 465 Cfg(cdoSMTPAuthenticate) = cdoBasic Cfg(cdoSMTPUseSSL) = True Cfg(cdoSendUserName) = "vbatestingtest@gmail.com" Cfg(cdoSendPassword) = "coding123$$" Cfg.Fields.Update 'SEND EMAIL With Mail .From = "vbatestingtest@gmail.com" .ReplyTo = "vbatestingtest@gmail.com" .To = "shellreid2004@yahoo.ca" .CC = "disegnifenice@gmail.com" .BCC = " " .Subject = "testing form send" .HTMLBody = "testing" .AddAttachment (strFileB) ' .AddAttachment (strFileD) .Send End With Error_Handling: If Err.Description <> "" Then MsgBox Err.Description End Sub |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Save File with specific name from fields input. | PM1 | Word | 17 | 10-04-2020 07:22 PM |
Save a .docm file as .pdf and email .pdf as attachment
|
Sydney Lacey | Word VBA | 2 | 02-26-2019 07:04 AM |
Macro to check the existence of a word docx file and create a new word file with specific content.
|
staicumihai | Word VBA | 14 | 11-15-2016 01:42 AM |
Create content control for clip art not a picture from file...
|
swissmiss | Drawing and Graphics | 3 | 11-01-2013 05:43 PM |
Save/Send to file
|
Dawn1231a | Outlook | 1 | 08-05-2010 01:10 PM |