asp classic - how to send email using Persits.MailSender -


i want send email using persits.mailsender object. found 1 solution , include code solution works , object created:

<% posted = request.form ("submit") if posted = "submit"  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '' customize following 5 lines own information. '' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' vtoaddress =   "_____" ' change email address receiving notices. vmailhost =   application("serveraddress") ' change actual domain name. vfromaddress = "_____" ' change email address use send , authenticate with. vfrompwd =     "_______________" ' change above email addresses password. vsubject =     "asp contact form"     'change own email message subject.   ''''''''''''''''''''''''''''''''''''''''''' '' not change past line '' ''''''''''''''''''''''''''''''''''''''''''' vfromname = request.form ("tname") vbody = request.form ("tbody") vrplyto = request.form ("temail") vmsgbody = vfromname &"<br>"& vrplyto &"<br>"& 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 <> ""         response.write verr & "<br><br>there error on page."     else         response.write "thank you, message has been sent."     end if set objemail = nothing  response.write "thank you, message has been sent." end if %>  <html><body> <form name="sendemail01" method="post"> <table border=0> <tr>             <td>name:</td>             <td><input type="text" name="tname" size="30"></td> </tr> <tr>             <td>email:</td>             <td><input type="text" name="temail" size="30"></td> </tr> <tr>             <td>body:</td>             <td><textarea rows="4" name="tbody" cols="30"></textarea></td> </tr> <tr>             <td><input type="submit" name="submit" value="submit"></td> </tr> </form> </body></html> 

after filling fields , submitting page error occured like:

    persits.mailsender.4 error '800a0004'  cannot assign requested address.  /contact_form.asp, line 34 

please me..


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -