cyberdeminout
Programmer
Hi,
I am sending email using system.net.
How to set x-sender?
Dim mailMsg As New MailMessage(sFromAddress.Trim, sTo.Trim)
With mailMsg
If Not String.IsNullOrEmpty(sCC) Then .CC.Add(sCC.Trim)
If Not String.IsNullOrEmpty(sBCC) Then .Bcc.Add(sBCC.Trim)
.Subject = sSubject.Trim
.Body = sBody
.IsBodyHtml = True
End With
Try
Dim client As New SmtpClient(ConfigurationSettings.AppSettings("sMailServer"))
client.Send(mailMsg)
I appreciate your great help.
Thanks
I am sending email using system.net.
How to set x-sender?
Dim mailMsg As New MailMessage(sFromAddress.Trim, sTo.Trim)
With mailMsg
If Not String.IsNullOrEmpty(sCC) Then .CC.Add(sCC.Trim)
If Not String.IsNullOrEmpty(sBCC) Then .Bcc.Add(sBCC.Trim)
.Subject = sSubject.Trim
.Body = sBody
.IsBodyHtml = True
End With
Try
Dim client As New SmtpClient(ConfigurationSettings.AppSettings("sMailServer"))
client.Send(mailMsg)
I appreciate your great help.
Thanks