| Current File : C:/Inetpub/vhosts/derecha3kmotor.com/httpdocs/2023/control/email.asp |
<%
if Session("autadmin")=true or Session("autprensa")=true then
else
Response.Redirect("index.asp")
Response.End
end if
id=request.querystring("id")
evento=request.querystring("evento")
tipo=request.form("tipo")
prueba=request.form("prueba")
fecha=request.form("fecha")
texto_generico=request.form("texto_generico")
idevento=request.form("idevento")
Session("prueba")=prueba
Session("fecha")=fecha
Session("idevento")=idevento
' ####### CONSULTO DATOS DEL ID
conexion="PROVIDER=SQLOLEDB;DATA SOURCE=147.135.183.197;UID=fapastur;PWD=Cocococo1;DATABASE=fapastur"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open(conexion)
sSQL="Select * From inscripciones where id='" & id & "'"
set RS = Conn.Execute(sSQL)
nombre=rs("nombre")
apellido1=rs("apellido1")
apellido2=rs("apellido2")
email=rs("email")
dni=rs("dni")
edad=rs("edad")
telefonomovil=rs("telefonomovil")
transponder=rs("transponder")
marca=rs("marca")
modelo=rs("modelo")
motor=rs("motor")
neumaticos=rs("neumaticos")
combustible=rs("combustible")
clave=rs("clave")
conn.close
enlace="http://www.fapastur.com/inscripciones/reinscripcion.asp?eventoprevio=" & evento & "&idevento=" & idevento & "&email=" & email & "&clave=" & clave
' ###### ENVIO EMAIL
on error resume next
set mail = server.createobject("persits.mailsender")
mail.host="mail.fapastur.com"
mail.port=25
mail.from="noreply@fapastur.com"
mail.username="noreply@fapastur.com"
mail.password="Fp937motor"
mail.fromname="RC Jaraquemada"
mail.addaddress email
mail.subject="Invitación " & prueba
Mail.body="Estimado " & nombre & "," & chr(13) & chr(10) & chr(13) & chr(10) & "nos ponemos en contacto con usted para recordarle que se encuentra abierto el plazo de inscripción para la prueba:" & chr(13) & chr(10) & chr(13) & chr(10) & prueba & chr(13) & chr(10) & chr(13) & chr(10) & "que se celebra el día " & fecha & " en el circuito de Narea (Telde)." & chr(13) & chr(10) & chr(13) & chr(10) & "Si desea inscribirse y emplear todos o parte de los datos de su última inscripción, pinche en el siguiente enlace:" & chr(13) & chr(10) & chr(13) & chr(10) & enlace & chr(13) & chr(10) & chr(13) & chr(10) & "El Club RC Jaraquemada le agradece su interés y le invita a conocer toda la información del mismo en la web www.fapastur.com." & chr(13) & chr(10) & chr(13) & chr(10) & "Atentamente," & chr(13) & chr(10) & chr(13) & chr(10) & "Antonio Guerra (Presidente)"
mail.send
if err<>0 then
response.write ""
end if
%><html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MC</title>
<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<style type="text/css">
A.p12n:link { text-decoration: none; }
A.p12n:active { text-decoration: none; }
A.p12n:visited { text-decoration: none; }
A.p12n:hover { text-decoration: underline; }
.p12n {
color: rgb(0, 0, 0);
font-family: 'Electrolize', sans-serif;
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
letter-spacing: normal;
line-height: 18px;
text-align: start;
text-indent: 0px;
text-transform: none;
white-space: normal;
widows: 2;
word-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;
'background-color: rgb(255, 255, 255);
display: inline !important;
float: none;
}
.p16b {
color: rgb(50, 100, 255);
font-family: 'Electrolize', sans-serif;
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: normal;
letter-spacing: normal;
line-height: 18px;
text-align: start;
text-indent: 0px;
text-transform: none;
white-space: normal;
widows: 2;
word-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;
'background-color: rgb(255, 255, 255);
display: inline !important;
float: none;
}
.modoa {
background-color: #F5F5F5;
}
.modob {
background-color: #E2E2E2;
}
</style>
<script type="text/javascript">
<!--
function showMe (it, box) {
var vis = (box.checked) ? "block" : "none";
document.getElementById(it).style.display = vis;
}
//-->
</script>
<script type="text/javascript">
$(document).ready(function(){
$('input[type="radio"]').click(function(){
if($(this).attr("value")=="recordatorio"){
$(".rec").show();
$(".gen").hide();
}
if($(this).attr("value")=="generico"){
$(".rec").hide();
$(".gen").show();
}
});
});
</script>
</head>
<body class="p12n">
<p align="center">E-mail enviado correctamente a <%=nombre%> <%=apellido1%> <%=apellido2%></p>
<form method="POST" action="listado_inscritos.asp?evento=<%=evento%>">
<p align="center"><input type="submit" value="Regresar" name="B1"></p>
</form>
<p align="center"> </p>
</body>
</html>