I have a code to send an email through Outlook looking up emails from a table.
Is there a way to include my Outlook signature?
-----------
Private Sub Command272_Click()
Dim strFileName As String
Dim rst As DAO.Recordset
Dim strEMailTo As String
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
Set rst = CurrentDb.OpenRecordset("select ContactEmail from Contacts where [2_Comm_OfferRecd] = True ")
rst.MoveFirst
Do While Not rst.EOF
strEMailTo = strEMailTo & "; " & rst!ContactEmail
rst.MoveNext
Loop
With MailOutLook
.To = strEMailTo
.Subject = "Signed Offer Received"
.HTMLBody = "<HTML><BODY><font face=Calibri>Good afternoon,<BR><BR>I have received the signed agreement from the following:"
.HTMLBody = .HTMLBody & "<BR><BR>-Employee: " & [PhysicianHired]
.HTMLBody = .HTMLBody & "<BR>-Department: " & [Division]
.HTMLBody = .HTMLBody & "<BR>-Manager: " & [HiringMgr]
.HTMLBody = .HTMLBody & "<BR>-Start Date: " & [Actual Start Date]
.HTMLBody = .HTMLBody & "<BR><BR>Jessica - CV Attestation attached for your process; please update me with the new EE#.<BR><BR>CV attached for all as well.<BR><BR>Thanks!<BR>Michele</b></font></BODY></HTML>"
.Display 'Used during testing without sending (Comment out .Send if using this line)
End With
End Sub
Is there a way to include my Outlook signature?
-----------
Private Sub Command272_Click()
Dim strFileName As String
Dim rst As DAO.Recordset
Dim strEMailTo As String
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
Set rst = CurrentDb.OpenRecordset("select ContactEmail from Contacts where [2_Comm_OfferRecd] = True ")
rst.MoveFirst
Do While Not rst.EOF
strEMailTo = strEMailTo & "; " & rst!ContactEmail
rst.MoveNext
Loop
With MailOutLook
.To = strEMailTo
.Subject = "Signed Offer Received"
.HTMLBody = "<HTML><BODY><font face=Calibri>Good afternoon,<BR><BR>I have received the signed agreement from the following:"
.HTMLBody = .HTMLBody & "<BR><BR>-Employee: " & [PhysicianHired]
.HTMLBody = .HTMLBody & "<BR>-Department: " & [Division]
.HTMLBody = .HTMLBody & "<BR>-Manager: " & [HiringMgr]
.HTMLBody = .HTMLBody & "<BR>-Start Date: " & [Actual Start Date]
.HTMLBody = .HTMLBody & "<BR><BR>Jessica - CV Attestation attached for your process; please update me with the new EE#.<BR><BR>CV attached for all as well.<BR><BR>Thanks!<BR>Michele</b></font></BODY></HTML>"
.Display 'Used during testing without sending (Comment out .Send if using this line)
End With
End Sub