Article View: es.comp.lenguajes.java
Article #16943RE: Envio de correo
From: Sarrio
Date: Sat, 16 Dec 2000 08:45
Date: Sat, 16 Dec 2000 08:45
38 lines
2137 bytes
2137 bytes
Problema resuelto, desde Javascript es sencill�simo.
<HTML>
<HEAD>
<TITLE>Ejemplo de formularios</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function validar(direccion) {
if (direccion.indexOf("@") != -1)
return true;
else {
alert('Debe escribir una direcci�n v�lida');
return false;
}
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="miFormulario"
METHOD="POST"
ACTION="mailto:yo@miproveedor.mipais"
ENCTYPE="text/plain"
onSubmit="return validar(this.email.value)">
Mandame tu e-mail: <INPUT NAME="email" TYPE="text"><BR>
<INPUT TYPE="submit" VALUE="Mandame tu e-mail">
</FORM>
</BODY>
</HTML>
Os recomiendo el curso que podeis descargar de "programadores.net" que es
desde donde est� sacado el ejemplo.
Sarrio <jlbece@terra.es> escribi� en el mensaje de noticias
GMMZ5.53506$yO2.1623191@telenews.teleline.es...
> Alguien me puede decir como enviar datos desde un applet o con ASP a una
> direcci�n de correo sin necesidad de abrir el programa de correo por
> defecto.
> Gracias.
>
>
Technical Details
Message-ID:
<jYF_5.84380$yO2.2386556@telenews.teleline.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!newsfeed.wirehub.nl!newspeer.monmouth.com!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mailReferences:
<GMMZ5.53506$yO2.1623191@telenews.teleline.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,d9f56df23ec4735d,start X-Google-Attributes: gid1116f3,public X-Google-ArrivalTime: 2000-12-16 00:40:44 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!newsfeed.wirehub.nl!newspeer.monmouth.com!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mail From: "Sarrio" <jlbece@terra.es> Newsgroups: es.comp.lenguajes.java References: <GMMZ5.53506$yO2.1623191@telenews.teleline.es> Subject: RE: Envio de correo Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Message-ID: <jYF_5.84380$yO2.2386556@telenews.teleline.es> Date: Sat, 16 Dec 2000 08:45:03 GMT NNTP-Posting-Host: 212.170.178.94 X-Complaints-To: usenet@teleline.es X-Trace: telenews.teleline.es 976956303 212.170.178.94 (Sat, 16 Dec 2000 09:45:03 MET) NNTP-Posting-Date: Sat, 16 Dec 2000 09:45:03 MET Organization: Clientes_Teleline