Note that there are some explanatory texts on larger screens.

plurals
  1. POASP form add email to and also add other fields from form
    text
    copied!<p>I have a small issue as I do not know asp. But the pages created for my Uncles website is in asp and the form is as well. I am having trouble getting his form to work and searched through errors and found a pdf from fasthost and I am trying this code but do not understand where I put my email address to send the information to and also how to add other information such as name. </p> <p>This is the code I am trying:</p> <pre><code>dim oCdoMsg, oCdoConfg, strReferer, strServer, strClientIP, strServerIP, blnSpam set oCdoMsg = server.createobject("CDO.Message") strReferer = request.servervariables("HTTP_REFERER") strServer = Replace(request.servervariables("SERVER_NAME"), "www.", "") strClientIP = request.servervariables("REMOTE_ADDR") strServerIP = request.servervariables("LOCAL_ADDR") strFrom = "noreply@" &amp; strServer intComp = inStr(strReferer, strServer) If intComp &gt; 0 Then blnSpam = False Else ' Spam Attempt Block blnSpam = True End If oCdoMsg.to = request.form("email") oCdoMsg.from = strFrom oCdoMsg.Subject = "CDO Test Mail" oCdoMsg.Textbody = "This test mail has been sent from server " oCdoMsg.Textbody = oCdoMsg.Textbody &amp; request.servervariables("LOCAL_ADDR") &amp; " via CDO mail objects." strMSSchema = "http://schemas.microsoft.com/cdo/configuration/" Set oCdoConfg = Server.CreateObject("CDO.Configuration") oCdoConfg.Fields.Item(strMSSchema &amp; "sendusing") = 2 oCdoConfg.Fields.Item(strMSSchema &amp; "smtpserver") = "smtp.fasthosts.co.uk" oCdoConfg.Fields.Update Set oCdoMsg.Configuration = oCdoConfg If NOT blnSpam Then oCdoMsg.send strResult = "Mail Sent." Else strResult = "Mail Not Sent." End If response.write strResult set oCdoMsg = nothing set oCdoConfg = nothing </code></pre> <p>I would appreciate any help with this, the code that is on the website right now shows a 500 error. Which is why I need to use the code above. I just need help with where to add my domain email and how to bring in other parts of the form such as name into the code above.</p> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload