Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: email through aspx


Message #1 by soni29@h... on Mon, 13 May 2002 17:41:58
hi,
i wanted to know is it possible to email through aspx? i wanted to make a 
site where the user buys something and after that the program would email 
the user a copy of the order, is there some way to achieve this with aspx?
Thank you.
Message #2 by "Aaron Fleming" <aaronf@w...> on Mon, 13 May 2002 12:39:56 -0400
<%@page language="VB" debug="true"%>
<%@ Import Namespace = "System.Web.Security" %>
<%@ Import Namespace = "System.Web.Mail" %>


<html>
<body>
<script language="VB" runat="server"> 
sub Page_Load(Src as Object, E as EventArgs )  

dim mm as New MailMessage ()
mm.From = ""
mm.To = "w"
mm.Subject = "Subject Of the Mail"
mm.Body = "Body of the Mail"
mm.BodyFormat = MailFormat.Html
smtpMail.SmtpServer = ""
smtpMail.Send(mm)
response.write("Email Sent.")
end sub

</script>
</body>
</html>

-----Original Message-----
From: soni29@h... [mailto:soni29@h...] 
Sent: May 13, 2002 1:42 PM
To: ASP+
Subject: [aspx] email through aspx


hi,
i wanted to know is it possible to email through aspx? i wanted to make
a 
site where the user buys something and after that the program would
email 
the user a copy of the order, is there some way to achieve this with
aspx? Thank you.

Message #3 by Feduke Cntr Charles R <FedukeCR@m...> on Mon, 13 May 2002 14:19:57 -0400
	Yes, it is possible to send e-mail via an ASPX page.  Take a look at
the System.Web.Mail namespace for more information.  Detailed examples can
be found by searching this mailing list's archives.

HTH,
- Chuck

-----Original Message-----
From: soni29@h... [mailto:soni29@h...]
Sent: Monday, May 13, 2002 1:42 PM
To: ASP+
Subject: [aspx] email through aspx


hi,
i wanted to know is it possible to email through aspx? i wanted to make a 
site where the user buys something and after that the program would email 
the user a copy of the order, is there some way to achieve this with aspx?
Thank you.

  Return to Index