|
|
Отправка E-Mail "Майлером" по умолчанию (DoCmd.SendObject)
Public Sub SendEMail(sEMails As String, Optional sSubject$ = "", _
Optional sText$ = "", Optional bEditMessage = True)
On Error GoTo SendEMail_Err
DoCmd.SendObject , "", "", sEMails, "", "", sSubject, sText, bEditMessage, ""
SendEMail_Bye:
Exit Sub
SendEMail_Err:
If Err.Number = 2501 Then
Resume SendEMail_Bye
End If
MsgBox "Error " & Err.Number & vbCrLf & Err.Description & vbCrLf & _
"in procedure SendEMail", vbCritical, "Error!"
Resume SendEMail_Bye
End Sub
|
|