View Single Post
  #1 (permalink)  
Old May 29th, 2007, 12:40 PM
Tawanda Tawanda is offline
Authorized User
 
Join Date: Sep 2006
Location: Mitcham, London, United Kingdom.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending Confirmation email in the WroxShop

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("mail@art-wax.co.uk", 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