Ca marche pas l'envoi E-mail dans ASP.net
Utilisateur anonyme
-
jghjghjh -
jghjghjh -
Bonjour,
ca marche pas l'envoi E-mail dans ASP.net vers le déstinataire Hotmail
merci d'avance
ca marche pas l'envoi E-mail dans ASP.net vers le déstinataire Hotmail
merci d'avance
Configuration: Windows XP Internet Explorer 6.0
6 réponses
-
-
-
<%@ 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> -
-
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question -
-
svp il ya qq'1 m'aide , c urgent
j'ajoute un client dans une page asp.net et dés son enregistrement j dois lui poster un mail de confirmation , et j sais pas comment ,svp aidez moi..
Houria