Pourra quelqu'un me donnant une explication à ce sens
Code ASP.NET :
Public MailMessage (String From, String to, String subject, String body)
Dim message As MailMessage = New MailMessage("Dali.hammami.spg@gmail.com", TextBox1.Text, "Vérification par courrier de l'adresse" & TextBox1.Text, "This is a test mail")
'Dim fileAttach As String = Server.MapPath("myEmails") & "\Mypic.jpg"
'Dim attach As Attachment = New Attachment(fileAttach)
' message.Attachments.Add(attach)
Dim client As SmtpClient = New SmtpClient("localhost")
client.Send(message)
'Additionally, if required, you client.Timeout = 500
' Pass the credentials if the server requires the client to authenticate before it will send e-mail on the client's behalf.
client.Credentials = CredentialCache.DefaultNetworkCredentials
Visual Studio 2010 me fait une erreur en disant " '.' attendu"