Send email via SMTP Server .NET 2.0
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Send email via SMTP Server .NET 2.0
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Send email via SMTP Server .NET 2.0
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 1,000 SHARP for every article they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyFeatured eBookClaude for AI-Native BuildersDownload nowWrite an article and earn +1,000 SHARP when it is approved.
Write an article
Parkash KaurPosted Feb 17, 2011, 9:29 PM EST
Sorry My code is as follows: Dim client = New System.Net.Mail.SmtpClient() client.Port = dsPkaur.Tables("smtp").Rows(0).Item("smtpport").ToString client.Host = dsPkaur.Tables("smtp").Rows(0).Item("smtphost").ToString Dim Msg As New MailMessage() Msg.From = New MailAddress("[email protected]") Msg.To.Add("[email protected]") Msg.CC.Add("[email protected]") Msg.Bcc.Add("[email protected]") Msg.Subject = "SubjectOfTheMailString" Msg.Body = "BodyOfTheMailString" Msg.IsBodyHtml = True Msg.BodyEncoding = System.Text.Encoding.UTF8 client.Send(Msg) It gives me Exception "Mailbox name not allowed. The server response was: Sorry, your envelope sender is in my badmailfrom list." will you clear it? Thanks. Parkash
Patrick ThomasPosted Nov 27, 2009, 7:15 AM EST
Many email servers will reject email if the sending site address is not a registered email server. What other code must be added to do this?
Minh TangPosted Oct 12, 2009, 12:42 PM EDT
Hi Guys, I having problem attached multiple files in the folder whether the extension *.txt, *.pdf ect. I need help! Please response Minh