title: How can I send mail from my localhost application using classic asp
body: <p>I'm using this with my server to send mails. Which is working perfectly.I want to try it out on my localhost app that I made.</p>
  
  <pre><code>    Set myMail=CreateObject("CDO.Message")
  
              myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
              myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/bodyformat") = 0 ' 0 - html, 1 - text
              myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/mailformat") = 0 ' 0 - mime, 1 - text
              myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "206.183.108.132"
              myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
              myMail.Configuration.Fields.Update
  
              myMail.Subject = "Your New Password for Leave App"
              myMail.From = rs("email")
              myMail.To = "somename@domain.com"
  
              msgg = msgg &amp; "Dear" &amp; " " &amp; session("Username") &amp; vbcrlf &amp; vbcrlf
              msgg = msgg &amp; "This is your new password" &amp; vbcrlf &amp; vbcrlf
              msgg = msgg &amp; "YOUR CHANGED PASSWORD" &amp; vbcrlf
              msgg = msgg &amp; "- - - - - - - - - - - - - - - - - - - - - - - - - - -" &amp; vbcrlf  
  
              msgg = msgg &amp; "User/Login Name :" &amp; session("Username") &amp; vbcrlf 
              msgg = msgg &amp; "Password :" &amp; request.Form("new_pass2") &amp; vbcrlf 
              msgg = msgg &amp; "- - - - - - - - - - - - - - - - - - - - - - - - - - -" &amp; vbcrlf &amp; vbcrlf 
              msgg = msgg &amp; "Please sign in to your account using the user name and password above." &amp; vbcrlf &amp; vbcrlf
              msgg = msgg &amp; "Thanks" &amp; vbcrlf 
  
              myMail.TextBody = msgg 
              myMail.Send
  
              set myMail = nothing
  </code></pre>