R
rgrantz
I have the following code:
Private Sub Command30_Click()
On Error Resume Next
If DCount("*", "ReportName") > 0 Then
DoCmd.SendObject acSendReport, "ReportName", acFormatRTF,
"myemailaddress", , , "Warning", "OrderDelays", False
End If
End Sub
When I activate this procedure, I DO get the "Outlook is trying to send an
email on your behalf" message, and I click "Yes" to allow. However, it
appears that no email is actually sent. I've tried using several of my own
testing email addresses, and receive nothing. I was wondering if perhaps
the SMTP user account name/password, etc. needs to be logged in via this
code or something. Is that possible? Or perhaps the .pst file location
needs to be specified somewhere (because when I had the "preview email
first?" option enabled, I got an error that the outlook.pst file was not
found).
If there are specific things that need to be done regarding finding
outlook.pst, logging into email server, etc., can someone help me out with
that?
Thanks very much for reading
Private Sub Command30_Click()
On Error Resume Next
If DCount("*", "ReportName") > 0 Then
DoCmd.SendObject acSendReport, "ReportName", acFormatRTF,
"myemailaddress", , , "Warning", "OrderDelays", False
End If
End Sub
When I activate this procedure, I DO get the "Outlook is trying to send an
email on your behalf" message, and I click "Yes" to allow. However, it
appears that no email is actually sent. I've tried using several of my own
testing email addresses, and receive nothing. I was wondering if perhaps
the SMTP user account name/password, etc. needs to be logged in via this
code or something. Is that possible? Or perhaps the .pst file location
needs to be specified somewhere (because when I had the "preview email
first?" option enabled, I got an error that the outlook.pst file was not
found).
If there are specific things that need to be done regarding finding
outlook.pst, logging into email server, etc., can someone help me out with
that?
Thanks very much for reading