ok I am stuck here and i am sure this is something so simple i am missing it. I would really appreciate some input. I am creating an email i send out of a access database to notify users of acces. I can get it to work with one exception, only get one line of data. i would like to have 2 lines. here is the code i am using,
Dim mess_body As String
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
'With objMail
'Set body format to HTML
'.BodyFormat = olFormatHTML
With MailOutLook
.BodyFormat = olFormatRichText
.To = Me.Email_Address
.Subject = Me.Mess_Subject
.Body = "<HTML><BODY><b><font color=red><font size=6>Please READ all instructions before calling TAC Logon using your Network logon.</BODY></HTML>"
.HTMLBody = "<HTML><BODY><font color=blue><font size=4>You will find a link to the documentation under Web Links once you are logged into the VPN Site. USAIT VPN has been fully tested and will work on any computer running Windows 2000 or XP. MAC Users - If you are running a MAC with a Windows emulator running you should have full functionality, however the VPN administrators are unable to support VPN use via a MAC. All others OS are not considered supported If you have any issues please call TAC @ 480-693-6029 for help. If you send reply to this email with questions someone will get back to you within 48hours. </BODY></HTML>"
If Left(Me.Mail_Attachment_Path, 1) <> "<" Then
.Attachments.Add (Me.Mail_Attachment_Path)
End If
'.DeleteAfterSubmit = True 'This would let Outlook send th note without storing it in your sent bin
.Display
'.send
End With
'MsgBox MailOutLook.Body
Exit Sub
email_error:
MsgBox "An error was encountered." & vbCrLf & "The error message is: " & Err.Description
Resume Error_out
Error_out:
End Sub
in advance let me say thank you the people on this site are always so helpful.
Roxanne
Dim mess_body As String
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
'With objMail
'Set body format to HTML
'.BodyFormat = olFormatHTML
With MailOutLook
.BodyFormat = olFormatRichText
.To = Me.Email_Address
.Subject = Me.Mess_Subject
.Body = "<HTML><BODY><b><font color=red><font size=6>Please READ all instructions before calling TAC Logon using your Network logon.</BODY></HTML>"
.HTMLBody = "<HTML><BODY><font color=blue><font size=4>You will find a link to the documentation under Web Links once you are logged into the VPN Site. USAIT VPN has been fully tested and will work on any computer running Windows 2000 or XP. MAC Users - If you are running a MAC with a Windows emulator running you should have full functionality, however the VPN administrators are unable to support VPN use via a MAC. All others OS are not considered supported If you have any issues please call TAC @ 480-693-6029 for help. If you send reply to this email with questions someone will get back to you within 48hours. </BODY></HTML>"
If Left(Me.Mail_Attachment_Path, 1) <> "<" Then
.Attachments.Add (Me.Mail_Attachment_Path)
End If
'.DeleteAfterSubmit = True 'This would let Outlook send th note without storing it in your sent bin
.Display
'.send
End With
'MsgBox MailOutLook.Body
Exit Sub
email_error:
MsgBox "An error was encountered." & vbCrLf & "The error message is: " & Err.Description
Resume Error_out
Error_out:
End Sub
in advance let me say thank you the people on this site are always so helpful.
Roxanne