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.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Parkash KaurPosted Feb 18, 2011, 2:29 AM
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, 12:15 PM
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, 4:42 PM
Hi Guys, I having problem attached multiple files in the folder whether the extension *.txt, *.pdf ect. I need help! Please response Minh