Hi,
I am trying to send email through System.Net.Mail.
It is working properly but it is not showing from name or mail header. My code is as follows. Any one help me
''#################Sending Email##########################
''Create instance of main mail message class.
Dim mailMessage As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
mailMessage.Headers.Add(lblFromName.Text, lblFromName.Text) '###########Problem Area################
mailMessage.From = New System.Net.Mail.MailAddress(lblFromEmail.Text.Trim())
mailMessage.To.Add(New System.Net.Mail.MailAddress(lblEmailAddress.Text.Trim()))
mailMessage.Priority = System.Net.Mail.MailPriority.Normal
mailMessage.IsBodyHtml = True
mailMessage.Subject = lblSubject.Text.Trim()
mailMessage.Body = HiddenFieldMessage.Value & FooterMessage
Dim smtpClient As ...
Go to the complete details ...