PDA

View Full Version : emailing order details


DivebombInc
02-08-2007, 01:28 AM
Is there a way to email a page?
Currently when someone confirms an order through my site I get a simple email telling me the order number.
I do it like this:
Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage
mailMessage.From = sales@divebombinc.com
mailMessage.To = kyle@divebombinc.com
mailMessage.Subject = "Confirmed Order"
mailMessage.BodyFormat = System.Web.Mail.MailFormat.Html
mailMessage.Body = "Order Number: " + Request.QueryString("OrderID")
System.Web.Mail.SmtpMail.SmtpServer = "localhost"
System.Web.Mail.SmtpMail.Send(mailMessage)
Can I send the page in html so when I get the email in Outlookit shows me the entire order and all the details? What I'm doing now is kind of primative; I actually open the database up and get all the information.

wisemx
02-08-2007, 02:37 AM
Yes...Do you want the code for asp.net v1.1 or v2.0? (Big difference in the mail system changes/HTML rich parts...)


Give this a try:
http://google.com/coop/cse?cx=009244845836111659857%3Albvxsjj8mho

DivebombInc
02-08-2007, 02:48 AM
Thanks!
1.1
Like I said... "primative".
That link didn't really go anywhere.

wisemx
02-08-2007, 03:25 AM
The link is my custom Google asp.net CoOp, you simply put a query in the box and hit enter.


It will comb through a bunch of asp.net tutorial sites looking for your request. http://community.discountasp.net/emoticons/wink.gif

kkarasin
02-09-2007, 02:19 AM
take a look at this one aspnet.4guysfromrolla.com/articles/091102-1.aspx (http://aspnet.4guysfromrolla.com/articles/091102-1.aspx )

kevinasp.com (http://kevinasp.com)