Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Capcha and JMail
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedCapcha and JMail

 Post Reply Post Reply
Author
albycaster View Drop Down
Newbie
Newbie
Avatar

Joined: 04 February 2003
Location: Argentina
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote albycaster Quote  Post ReplyReply Direct Link To This Post Topic: Capcha and JMail
    Posted: 12 May 2007 at 3:25pm
here is a jmail process form  that works for me thanks to the people of myhosting.com , real cool hosting support!
regards
albyBig%20smile
 
<!-- Include file for CAPTCHA form processing -->            
 <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->          
<%

If blnCAPTCHAcodeCorrect = True Then

Dim Jmail

Set JMail = Server.CreateObject("JMail.SMTPMail")

'Pongo a true para que no me haga una exepcion si hay un error
JMail.Silent = true

'Habilito el Log
JMail.Logging = true

' This is my local SMTP server
JMail.ServerAddress = "mail.midominio.com"


' This is me....
JMail.Sender = Request.Form("email")
JMail.Subject = Request.Form("subject")
JMail.SenderName = Request.Form("Nombre")

' Obtengo las Direcciones de Destino
Dim Direcciones, I
Direcciones = split(Request.Form("recipient"), ";")
For I = LBound(Direcciones) To UBound(Direcciones)
  JMail.AddRecipient(CStr(Direcciones(I)))
Next
JMail.AddRecipientBCC("xxx@xxx.com")


JMail.Priority = 3

'Priority 1 = Alta
'Priority 3 = Normal
'Priority 5 = Baja

JMail.body = Request.Form("Mensaje") & vbcrlf
JMail.appendtext("Nombre: " & Request.Form("Nombre") & vbcrlf )
JMail.appendtext("Email: " & Request.Form("email") & vbcrlf )
JMail.appendtext("Telefono: " & Request.Form("Telefono") & vbcrlf )
JMail.appendtext("Comentarios: " & Request.Form("Comentarios") & vbcrlf )
JMail.appendtext(vbcrlf)

'Response.Write(JMail.ServerAddress)

' Enviar...

 

  JMail.Execute
 
  Response.Write("El mensaje ha sido enviado, le contestaremos a la brevedad")
Else

 Response.Write("ERROR! Usted no ha escrito el código correctamente, por favor vuelva hacia atrás y escriba un nuevo código, si no lo ve claramente haga click sobre mostrar nuevo código")
End If

%>



Edited by albycaster - 18 May 2007 at 2:37pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.