You don't need MS Exchange as far as I know.<br>
<br>
I think there is a middle layer that needs to be set-up for the MS to Lotus link to work. Before getting involved in the VB stuff, try sending a document from a MS product such as Word or Excel. From the File menu, chose Send. See how far you get. In the meantime...<br>
<br>
Make sure you have the MAPI OCX. From Form design, click the "More Controls" button. Scroll down and see if you have "Microsoft MAPI Message Control Version 5.0" & "Microsoft MAPI Session Control Version 5.0" If you don't see them, look for MSMAPI32.OCX on your system. If you find it, register it via Tools / Active X Controls / Register... If you don't find them, see if you can get them

<br>
<br>
The controls (two) are invisible. Add them to your form. Following are code samples that I have used. Modify them for your needs. MS Help has more info...<br>
<br>
Private Sub FileSizeWarning(strFileName As String, iMaxRecs As Variant)<br>
<br>
' This routine added 1/22/1999 <br>
' The purpose of this routine is to notify IS when the number of records in the control file<br>
' approaches the maximum. IS will need to clean the file out by archiving old records.<br>
' This routine attempts to send e-mail messages to individuals in IS. If the mail functions<br>
' fail for any reason, a message box is displayed instructing the user to notify IS.<br>
<br>
mbSendMode = False ' use TRUE for testing & FALSE for production.<br>
<br>
mbMsgSent = False<br>
mstrSubj = "WARNING! Check Bill Editor File Size"<br>
mstrText = "System generated message from Retro Bill Editor to IS support team:" _<br>
& CRLF & CRLF _<br>
& "The number of records in control file: " & strFileName _<br>
& " is " & iMaxRecs & " and the maximum is " _<br>
& CONTROL_REC_MAX & ", please take appriopriate action" _<br>
& " (i.e. use menu option Administration / Clean up Bill File)." _<br>
& CRLF & CRLF _<br>
& "This message automatically generated by the Retro" _<br>
& " Bill Editor Application. File size limits set in frmOpenDlg.LoadPlanList."<br>
<br>
<br>
On Error Resume Next<br>
<br>
' Establish the mail session using the MAPI Session control<br>
MAPISess.LogonUI = False ' turn user interface off<br>
MAPISess.UserName = "Commercial Lines" ' set the MS Exchange type<br>
MAPISess.SignOn<br>
<br>
If Err <> 0 Then<br>
GoTo MailError<br>
End If<br>
<br>
' Set-up & send e-mail messages using the MAPI message control<br>
<br>
MAPIMess.SessionID = MAPISess.SessionID ' link the message to the session<br>
<br>
' separate messages are sent to the IS team members. If NONE of them get through<br>
' for any reason, a message box is displayed in the error routine.<br>
' This technicque of sending separate messages used because of the limitations in the<br>
' MAPI controls. The receipients must be defined to the user's personal address book.<br>
' It is quite possible that the personal address book will not be populated.<br>
<br>
Call SendMessage(IS_SUPERVISOR)<br>
Call SendMessage(IS_ADMIN1)<br>
Call SendMessage(IS_ADMIN2)<br>
Call SendMessage(IS_ADMIN3)<br>
<br>
MAPISess.SignOff<br>
<br>
If mbMsgSent = False Then<br>
GoTo MailError<br>
End If<br>
<br>
Exit Sub<br>
<br>
MailError:<br>
<br>
MsgBox "Warning! The number of control records is " & iMaxRecs & _<br>
", and is close to reaching the maximum of " & CONTROL_REC_MAX _<br>
& ". Please notify systems support.", _<br>
vbExclamation, "Retro Bill Editor"<br>
<br>
End Sub<br>
<br>
Private Sub SendMessage(strRecip As String)<br>
<br>
MAPIMess.MsgIndex = -1 ' new message<br>
MAPIMess.RecipType = mapToList ' receipient type is "To"<br>
<br>
MAPIMess.RecipDisplayName = strRecip ' e-mail receipient<br>
<br>
MAPIMess.MsgSubject = mstrSubj<br>
MAPIMess.MsgNoteText = mstrText<br>
<br>
MAPIMess.Send (mbSendMode)<br>
<br>
If Err = 0 Then<br>
mbMsgSent = True<br>
End If<br>
<br>
End Sub<br>
<br>