Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set x-sender in asp.net email

Status
Not open for further replies.

cyberdeminout

Programmer
Jul 19, 2005
37
US
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'm not so sure...but you need to set these (x-sender, x-receiver) in message body.
The following link may help you for this...
Sending Email in ASP.NET 2.0

Sharing the best from my side...

--Prashant--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top