A voir également:
- Ca marche pas l'envoi E-mail dans ASP.net
- Yahoo mail - Guide
- É - Guide
- Programmer envoi mail gmail - Guide
- Publipostage mail - Guide
- Annuler envoi mail gmail - Guide
6 réponses
Utilisateur anonyme
19 avril 2008 à 14:44
19 avril 2008 à 14:44
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication6.WebForm1"%>
<%@ import namespace="System"%>
<%@ import namespace="System.Web" %>
<%@ import namespace="System.Web.Mail"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script runat="server">
sub cmdsend_click(sender as Object,e as EventArgs)
dim objMail as MailMessage
objMail=New MailMessage()
with objMail
.from="ali_bouta@hotmail.com"
.to="batma97@hotmail.fr"
.subject="test"
.body="test de lmail"
.BodyFormat=MailFormat.Html
end with
smtpMail.smtpServer="192.168.1.4"
smtpMail.Send(objMail)
end sub
</script>
</head>
<body MS_POSITIONING="GridLayout">
<form>
<input type=submit name=cmdsend value=sendEmail>
</form>
</body>
</html>
<%@ import namespace="System"%>
<%@ import namespace="System.Web" %>
<%@ import namespace="System.Web.Mail"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script runat="server">
sub cmdsend_click(sender as Object,e as EventArgs)
dim objMail as MailMessage
objMail=New MailMessage()
with objMail
.from="ali_bouta@hotmail.com"
.to="batma97@hotmail.fr"
.subject="test"
.body="test de lmail"
.BodyFormat=MailFormat.Html
end with
smtpMail.smtpServer="192.168.1.4"
smtpMail.Send(objMail)
end sub
</script>
</head>
<body MS_POSITIONING="GridLayout">
<form>
<input type=submit name=cmdsend value=sendEmail>
</form>
</body>
</html>
artragis
Messages postés
481
Date d'inscription
mardi 12 juin 2007
Statut
Membre
Dernière intervention
6 avril 2010
146
19 avril 2008 à 14:50
19 avril 2008 à 14:50
tu as oublié dans le boutton submit
action=server
sinon je sais pas, je vais pas de l'asp... j'aime pas
action=server
sinon je sais pas, je vais pas de l'asp... j'aime pas
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
19 avril 2008 à 14:25
merci