title: how to send email using Persits.MailSender
body: <p>i want to send email using Persits.MailSender object. i found one solution and i include this code this solution works and Object created:</p>
  
  <pre><code>&lt;%
  posted = request.form ("submit")
  if posted = "Submit" then
  
  ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  '' Customize the following 5 lines with your own information. ''
  ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  vtoaddress =   "_____" ' Change this to the email address you will be receiving your notices.
  vmailhost =   Application("ServerAddress") ' Change this to your actual Domain name.
  vfromaddress = "_____" ' Change this to the email address you will use to send and authenticate with.
  vfrompwd =     "_______________" ' Change this to the above email addresses password.
  vsubject =     "ASP Contact Form"     'Change this to your own email message subject.
  
  
  '''''''''''''''''''''''''''''''''''''''''''
  '' DO NOT CHANGE ANYTHING PAST THIS LINE ''
  '''''''''''''''''''''''''''''''''''''''''''
  vfromname = request.form ("TName")
  vbody = request.form ("TBody")
  vrplyto = request.form ("TEmail")
  vmsgbody = vfromname &amp;"&lt;br&gt;"&amp; vrplyto &amp;"&lt;br&gt;"&amp; vbody
  
  Set objEmail = Server.CreateObject("Persits.MailSender")
  
  objEmail.Username = vfromaddress
  objEmail.Password = vfrompwd
  objEmail.Host = vmailhost
  objEmail.From = vfromaddress
  objEmail.AddAddress vtoaddress
  objEmail.Subject = vsubject
  objEmail.Body = vmsgbody
  objEmail.IsHTML = True
  objEmail.Send
  
      vErr = Err.Description
      if vErr &lt;&gt; "" then
          response.write vErr &amp; "&lt;br&gt;&lt;br&gt;There was an error on this page."
      else
          response.write "Thank you, your message has been sent."
      End If
  Set objEmail = Nothing
  
  response.write "Thank you, your message has been sent."
  end if
  %&gt;
  
  &lt;html&gt;&lt;body&gt;
  &lt;form name="SendEmail01" method="post"&gt;
  &lt;table border=0&gt;
  &lt;tr&gt;
              &lt;td&gt;Name:&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="TName" size="30"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
              &lt;td&gt;Email:&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="TEmail" size="30"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
              &lt;td&gt;Body:&lt;/td&gt;
              &lt;td&gt;&lt;textarea rows="4" name="TBody" cols="30"&gt;&lt;/textarea&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
              &lt;td&gt;&lt;input type="submit" name="Submit" value="Submit"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/form&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>after filling all fields and submitting page then error occured like:</p>
  
  <pre><code>    Persits.MailSender.4 error '800a0004'
  
  Cannot assign requested address.
  
  /contact_form.asp, line 34
  </code></pre>
  
  <p>please help me..</p>