% ' change to address of your own SMTP server dim strHost strHost = "mail.chocolatetamales.com" '"63.99.224.76" If Request("btnSubmit") <> "" Then Set Mail = Server.CreateObject("Persits.MailSender") ' enter valid SMTP host Mail.Host = strHost dim strNameOfCompany, strAddress, strCity, strState, strZipCode dim strPhone, strFax, strEmailAddress, strContactPerson, strYearsInBusiness dim strResaleNumber, strBusinessDesc, strTypeOfProducts strNameOfCompany = Request("NameOfCompany") strAddress = Request("Address") strCity = Request("City") strState = Request("State") strZipCode = Request("ZipCode") strPhone = Request("Phone") strFax = Request("Fax") strEmailAddress = Request("EmailAddress") strContactPerson = Request("ContactPerson") strYearsInBusiness = Request("YearsInBusiness") strResaleNumber = Request("ResaleNumber") strBusinessDesc = Request("BusinessDesc") strTypeOfProducts = Request("TypeOfProducts") strFromAddress = strEmailAddress strFromName = strContactPerson strToAddress = "NewAccounts@chocolatetamales.com" Mail.From = strFromAddress ' From address Mail.FromName = strFromName ' optional Mail.AddAddress strToAddress ' message subject Mail.Subject = "New Account Request: " & strNameOfCompany ' message body dim strBody, theTime theTime = now strBody = "Email Sent: " & theTime & vbCrLf & vbCrLf strBody = strBody & "A new account has been requested by: " & strContactPerson & " of " & strNameOfCompany & vbCrLf strBody = strBody & "Address: " & strAddress & vbCrLf strBody = strBody & "City: " & strCity & vbCrLf strBody = strBody & "State: " & strState & vbCrLf strBody = strBody & "Zip: " & strZipCode & vbCrlf strBody = strBody & "Phone: " & strPhone & vbCrLf strBody = strBody & "Fax: " & strFax & vbCrLf strBody = strBody & "Email: " & strEmailAddress & vbCrLf strBody = strBody & "Years In Business: " & strYearsInBusiness & vbCrLf strBody = strBody & "Resale Permit Number: " & strResaleNumber & vbCrLf strBody = strBody & "Business Description: " & strBusinessDesc & vbCrLf strBody = strBody & "Type of Products Sold: " & strTypeOfProducts & vbCrLf Mail.Body = strBody strErr = "" bSuccess = False On Error Resume Next ' catch errors Mail.Send ' send message If Err <> 0 Then ' error occurred strErr = Err.Description else bSuccess = True End If End If %>