Looking to add a loop to list the order details along with the information already included in this email. Does anyone have any advice on this...
Private Sub eMailConfirmationHTML()
Dim row As DataRow
Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage()
mailMessage.From = "****@****.com"
mailMessage.To = "****@****.com"
mailMessage.Subject = "Order Confirmation: Order #" & txtOrderID2.Text
mailMessage.Body = "<HTML><IMG SRC=""c:\logo.jpg"" BORDER=""5"" ALIGN=""RIGHT""></IMG></HTML>" & _
"<HTML><BODY BACKGROUND=""c:\marble.bmp""></BODY></HTML>" & _
"<HTML><BODY><B>This is to confirm the order you placed with Us</B></BODY></HTML>" & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Your order confirmation Number is : Order # </B></BODY></HTML>" & txtOrderID2.Text & "<HTML><BR></HTML>" & _
"<HTML><BR></HTML>" & _
"<HTML><BODY><B>Shipping To: </B></BODY></HTML>" & cboShippingAddress.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Address: </B></BODY></HTML>" & txtSAddress.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>City: </B></BODY></HTML>" & txtSCity.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Province: </B></BODY></HTML>" & txtSProvince.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Country: </B></BODY></HTML>" & txtSCountry.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Post Code: </B></BODY></HTML>" & txtSPostCode.Text & "<HTML><BR></HTML>" & _
"<HTML><BR></HTML>" & _
"<HTML><BODY><B>Order Details </B></BODY></HTML>" & txtSPostCode.Text & "<HTML><BR></HTML>" & _
"<HTML><BR></HTML>"
mailMessage.BodyFormat = System.Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "123.123.123.123"
System.Web.Mail.SmtpMail.Send(mailMessage)
End Sub
I need to add the loop after the Order Details
Private Sub eMailConfirmationHTML()
Dim row As DataRow
Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage()
mailMessage.From = "****@****.com"
mailMessage.To = "****@****.com"
mailMessage.Subject = "Order Confirmation: Order #" & txtOrderID2.Text
mailMessage.Body = "<HTML><IMG SRC=""c:\logo.jpg"" BORDER=""5"" ALIGN=""RIGHT""></IMG></HTML>" & _
"<HTML><BODY BACKGROUND=""c:\marble.bmp""></BODY></HTML>" & _
"<HTML><BODY><B>This is to confirm the order you placed with Us</B></BODY></HTML>" & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Your order confirmation Number is : Order # </B></BODY></HTML>" & txtOrderID2.Text & "<HTML><BR></HTML>" & _
"<HTML><BR></HTML>" & _
"<HTML><BODY><B>Shipping To: </B></BODY></HTML>" & cboShippingAddress.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Address: </B></BODY></HTML>" & txtSAddress.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>City: </B></BODY></HTML>" & txtSCity.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Province: </B></BODY></HTML>" & txtSProvince.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Country: </B></BODY></HTML>" & txtSCountry.Text & "<HTML><BR></HTML>" & _
"<HTML><BODY><B>Post Code: </B></BODY></HTML>" & txtSPostCode.Text & "<HTML><BR></HTML>" & _
"<HTML><BR></HTML>" & _
"<HTML><BODY><B>Order Details </B></BODY></HTML>" & txtSPostCode.Text & "<HTML><BR></HTML>" & _
"<HTML><BR></HTML>"
mailMessage.BodyFormat = System.Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "123.123.123.123"
System.Web.Mail.SmtpMail.Send(mailMessage)
End Sub
I need to add the loop after the Order Details