Print Page | Close Window

Capcha and JMail

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=23309
Printed Date: 28 March 2026 at 4:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Capcha and JMail
Posted By: albycaster
Subject: Capcha and JMail
Date 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(" mailto:xxx@xxx.com - 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

%>




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net