polarbear199
11-29-2001, 10:32 PM
I'm using the following code for a registration. Is there a way to add a submit button that will automatically press send on the users default Email Program?
Private Sub btnSendInfo_Click()
FileNum = FreeFile
Open "D:\reg.txt" For Append As FileNum
Write #FileNum, txtCustomerName.Text, txtCompanyName.Text, txtCompanyAddress.Text, _
txtCompanyCity.Text, txtCompanyState.Text, txtCompanyZip.Text, _
txtCompanyPhone.Text, txtCompanyFAX.Text, txtCompanyEmail.Text
Close FileNum
FileNum = FreeFile
Open "D:\reg.txt" For Input As FileNum
EmailBody = Input(LOF(FileNum), FileNum)
Close FileNum
email = "Start mailto:Purepro@Verizon.net"
email = email & "?Subject=Catalog_CDROM_Registration"
email = email & "&Body="
email = email & EmailBody
Shell (email), vbHide
End Sub
Private Sub btnSendInfo_Click()
FileNum = FreeFile
Open "D:\reg.txt" For Append As FileNum
Write #FileNum, txtCustomerName.Text, txtCompanyName.Text, txtCompanyAddress.Text, _
txtCompanyCity.Text, txtCompanyState.Text, txtCompanyZip.Text, _
txtCompanyPhone.Text, txtCompanyFAX.Text, txtCompanyEmail.Text
Close FileNum
FileNum = FreeFile
Open "D:\reg.txt" For Input As FileNum
EmailBody = Input(LOF(FileNum), FileNum)
Close FileNum
email = "Start mailto:Purepro@Verizon.net"
email = email & "?Subject=Catalog_CDROM_Registration"
email = email & "&Body="
email = email & EmailBody
Shell (email), vbHide
End Sub