<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012683" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012683</link>
    <description></description>
    <language>en</language>
          <item>
    <title>thank you!!</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-asp-form-has-me-boggled#comment-1073378</link>
    <description> &lt;p&gt;okay, I haven&#039;t tried it yet, but a response is such a great thing.  Thank you both for your response and suggestions, I am off and running again.&lt;/p&gt;
&lt;p&gt;Much obliged!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Mon, 30 Oct 2000 19:35:32 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1073378 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-asp-form-has-me-boggled#comment-1073376</link>
    <description> &lt;p&gt;Suzanne,&lt;/p&gt;
&lt;p&gt;It&#039;s a little hard to check your code since it word-wrapped but it looked ok to me. I&#039;ll print it out here and add anything I think you need.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;Option Explicit&lt;br /&gt;&lt;br /&gt;Dim oMail&lt;br /&gt;Dim sCommentType&lt;br /&gt;Dim sComments&lt;br /&gt;Dim sName&lt;br /&gt;Dim sEmail&lt;br /&gt;Dim sTelephone&lt;br /&gt;Dim sMessageBody &amp;#039;get form values&lt;br /&gt;sCommentType = Trim(Request.Form(&amp;quot;radCommentType&amp;quot;)) sComments = Trim(Request.Form(&amp;quot;txtComments&amp;quot;))&lt;br /&gt;sName = Trim(Request.Form(&amp;quot;txtName&amp;quot;))&lt;br /&gt;sEmail = Trim(Request.Form(&amp;quot;txtEmail&amp;quot;))&lt;br /&gt;sTelephone = Trim(Request.Form(&amp;quot;txtTelephone&amp;quot;))&lt;br /&gt;&lt;br /&gt;&amp;#039;if any values are blank, replace with &amp;quot;[Not Given]&amp;quot;&lt;br /&gt;If sName = &amp;quot;&amp;quot; Then sName = &amp;quot;[Not Given]&amp;quot;&lt;br /&gt;If sEmail = &amp;quot;&amp;quot; Then sEmail = &amp;quot;[Not Given]&amp;quot;&lt;br /&gt;If sTelephone = &amp;quot;&amp;quot; Then sTelephone = &amp;quot;[Not Given]&amp;quot;&lt;br /&gt;&lt;br /&gt;&amp;#039;DO ANY FORM CHECKING HERE BEFORE CONTINUING (Optional)&lt;br /&gt;If sName = &amp;quot;[Not Given]&amp;quot; or sEmail = &amp;quot;[Not Given]&amp;quot; or sTelephone = &amp;quot;[Not Given]&amp;quot; Then&lt;br /&gt;Session(&amp;quot;ErrorMessage&amp;quot;) = &amp;quot;You did not fill our a required field&amp;quot;&lt;br /&gt;Response.Redirect &amp;quot;form.asp&amp;quot;&lt;br /&gt;Else &amp;#039;Go ahead and send email&lt;br /&gt;&lt;br /&gt;&amp;#039;compose message body&lt;br /&gt;sMessageBody = &amp;quot;Comment Type: &amp;quot; &amp;amp; sCommentType &amp;amp; VbCrLf&lt;br /&gt;sMessageBody = sMessageBody &amp;amp; &amp;quot;Comments : &amp;quot; &amp;amp; sComments &amp;amp; VbCrLf&lt;br /&gt;sMessageBody = sMessageBody &amp;amp; &amp;quot;Name : &amp;quot; &amp;amp; sName &amp;amp; VbCrLf&lt;br /&gt;sMessageBody = sMessageBody &amp;amp; &amp;quot;EMail : &amp;quot; &amp;amp; sEmail &amp;amp; VbCrLf&lt;br /&gt;sMessageBody = sMessageBody &amp;amp; &amp;quot;Telephone : &amp;quot; &amp;amp; sTelephone &amp;amp; VbCrLf&lt;br /&gt;sMessageBody = sMessageBody &amp;amp; &amp;quot;-----END OF EMAIL-----&amp;quot;&lt;br /&gt;&amp;#039;instantiate object&lt;br /&gt;Set oMail = Server.CreateObject(&amp;quot;CDONTS.Newmail&amp;quot;)&lt;br /&gt;&amp;#039;set parameters&lt;br /&gt;oMail.To = &amp;#039;recipients email address here&lt;br /&gt;oMail.From = &amp;#039;senders email address here&lt;br /&gt;oMail.Subject = &amp;quot;Test&amp;quot;&lt;br /&gt;oMail.MailFormat = 0 &amp;#039;plain text format&lt;br /&gt;oMail.BodyFormat = 0 &amp;#039;plain text format&lt;br /&gt;&amp;#039;assign message body &lt;br /&gt;oMail.Body = sMessageBody &lt;br /&gt;&amp;#039;send&lt;br /&gt;oMail.Send&lt;br /&gt;Set oMail = Nothing&lt;br /&gt;&lt;br /&gt;Session(&amp;quot;ConfirmMessage&amp;quot;) = &amp;quot;Thank you for filling out the form&amp;quot;&lt;br /&gt;Response.Redirect &amp;quot;form.asp&amp;quot;&lt;br /&gt;&lt;br /&gt;End If&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;That&#039;s it, I removed the Sub since you don&#039;t really need it, even if the form is callng itself. I also added some form checking, just as an example, that way if you have a required field that has to be filled out you want get any blank values (remember JavaScript can always be turned off which disables client-side form checking).&lt;/p&gt;
&lt;p&gt;For the CDONTS object to work you have to have SMTP server running on your IIS installation.&lt;/p&gt;
&lt;p&gt;If you&#039;re still having trouble there&#039;s a good example at &lt;a href=&quot;http://www.asp101.com&quot; class=&quot;bb-url&quot;&gt;http://www.asp101.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
&lt;p&gt;(&lt;em&gt;Moderator edit: added code tags&lt;/em&gt;)&lt;/p&gt;
 </description>
     <pubDate>Mon, 30 Oct 2000 17:25:23 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1073376 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Not really an answer but...</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-asp-form-has-me-boggled#comment-1073374</link>
    <description> &lt;p&gt;If you&#039;re looking around for a free place to try out your ASP code, you might want to get a free account at &lt;a href=&quot;http://www.brinkster.com.&quot; class=&quot;bb-url&quot;&gt;http://www.brinkster.com.&lt;/a&gt;  I&#039;m the type of programmer who wants to try stuff out at each and every step to be sure I&#039;m on the right track; this account makes a nice &quot;sandbox&quot; for me where I can run code experiments without affecting the hits &amp;amp; pageview stats at my real site.  Their free account doesn&#039;t offer any ASP email services (like ASPmail, etc.), but you can at least try out form processing, like by putting up a mockup page stating &quot;Here is the data that &lt;strong&gt;would be&lt;/strong&gt; emailed to you:&quot;.&lt;/p&gt;
 </description>
     <pubDate>Mon, 30 Oct 2000 17:09:45 +0000</pubDate>
 <dc:creator>KLWong</dc:creator>
 <guid isPermaLink="false">comment 1073374 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
