Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,445 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,221 people online right now. Registration is fast and FREE... Join Now!




email via form

 
Reply to this topicStart new topic

email via form, Microsoft VBScript runtime error '800a01a8'

bee1554
24 Aug, 2008 - 10:22 PM
Post #1

New D.I.C Head
*

Joined: 16 Nov, 2007
Posts: 3


My Contributions
when i am using asp mailer form on my web, i am facing an error

/*
Microsoft VBScript runtime error '800a01a8'

Object required: ''

/formmailler.asp, line 50
*/

CODE


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mailer Form</title>
</head>
<body>
<%
strHost = "mail.mydomain.com"
strUsername = "info@mydomain.com"
strPassword = "mypassword"
If Request("Send") <> "" Then
   Set Mail = Server.CreateObject("Persits.MailSender")
   Mail.Host = strHost
   Mail.Username = strUsername
   Mail.Password = strPassword
   Mail.Name = Request("Name")
   Mail.Organization = Request("Organization")
   Mail.Address = Request("Address")
   Mail.Country= Request("Country")
   Mail.Telephone= Request("Telephone")
   Mail.Emailid= Request("Emailid")
   Mail.Body = Request("Body")
   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
%>
<% If strErr <> "" Then %>
<h3>Error occurred: <% = strErr %>
<% End If %>
<% If bSuccess Then %>
Success! Message sent to <% = Request("To") %>.
<% End If %>
      <div style="margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #4AF4FE;">
            <h1 class="title">Query Form  </h1>
            <p class="title"><% = mail.mydomain.com %>&nbsp;</p>
            <form name="form1" method="post" action="">
              <table width="98%" border="1" cellspacing="4" cellpadding="2">
                <tr>
                  <td width="47%"><strong>Name</strong></td>
                  <td width="3%"><strong>:</strong></td>
                  <td width="50%"><label>
                    <input name="name" type="text" id="name">
                  </label></td>
                </tr>
                <tr>
                  <td><strong>Organization</strong></td>
                  <td><strong>:</strong></td>
                  <td><label>
                    <input name="organization" type="text" id="organization">
                  </label></td>
                </tr>
                <tr>
                  <td><strong>Address</strong></td>
                  <td><strong>:</strong></td>
                  <td><label>
                    <textarea name="address" id="address"></textarea>
                  </label></td>
                </tr>
                <tr>
                  <td><strong>Country</strong></td>
                  <td><strong>:</strong></td>
                  <td><label>
                    <input name="country" type="text" id="country">
                  </label></td>
                </tr>
                <tr>
                  <td><strong>Telephone</strong></td>
                  <td><strong>:</strong></td>
                  <td><label>
                    <input name="telephone" type="text" id="telephone">
                  </label></td>
                </tr>
                <tr>
                  <td><strong>E-mail ID </strong></td>
                  <td><strong>:</strong></td>
                  <td><label>
                    <input name="emailid" type="text" id="emailid">
                  </label></td>
                </tr>
                <tr>
                  <td><strong>Kindly describe your requirement </strong></td>
                  <td><strong>:</strong></td>
                  <td><label>
                    <textarea name="body" id="body"></textarea>
                  </label></td>
                </tr>
                <tr>
                  <td colspan="3">&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="3"><label>
                    <div align="center">
                      <input type="submit" name="Submit" value="Submit">
                      <input type="reset" name="Submit2" value="Reset">
                    </div>
                  </label></td>
                </tr>
              </table>
        </form>
            <p align="center" class="style3">* All Fields Are Required.* </p>
</body>
</html>



User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 02:29PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month