I am trying to let the web page send an email to the user.
When I ran this code, I ran into "Foxweb time out." error. Obviously, my mail server takes longer time to synchronize the connection. I hit the error, before the code runs through. There is no problem in the VFP code. It just takes some time to send the mail. How to avoid this? Anyway to run it at the back end and not let the user to wait. Thank you.
IF Request.FormCount("email") <> 0
locate all for UPPER(email) = UPPER(Request.Form("email"))
Your password will be sent to you in a few minutes.
oOutlook = CreateObject('Outlook.Application')
oMail = oOutlook.CreateItem(0)
.Subject = "Your password"
.Body = "Your password: "+cPWD
.To = "email@example.com"
This email is not found.