Hie
I am trying to figure out how the SendConfirmationMessage method of the Helpers class sends email.
Dim theSubject As String = "Your order at The Batik Shop"
Dim theMessage As String = My.Computer.FileSystem.ReadAllText _
(AppConfiguration.ConfirmationMessageLocation)
Dim mySmtpClient As New System.Net.Mail.SmtpClient
theMessage = theMessage.Replace("##ShoppingCart##", _
GetHtmlFromControl(myGridView))
theMessage = theMessage.Replace("##OrderNumber##", orderId.ToString())
mySmtpClient.Send("
[email protected]", emailAddress, theSubject, theMessage)
I am aware of how emailing works in asp.net but what i wanted to know is where the mySmtpClient.Send() is getting the TO: emailaddress.
Am i supposed to set it myself or the code is getting it from somewhere automatically,if so where.My understanding is that the email address is different for each user.
Thanks