Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
VB.NET
VB.NET General Discussion
Error send email?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mythinky" data-source="post: 366" data-attributes="member: 82"><p>Helo, I have a problem when sending email from VB.Net application, the </p><p></p><p>error message is </p><p>"The server rejected one or more recipient addresses. The server </p><p></p><p>response was: 550 5.7.1 Unable to relay for </p><p></p><p><a href="mailto:destinationemail@address.com">destinationemail@address.com</a>". What is actually is the problem? How can </p><p></p><p>i get out from this problem? Anyone have any idea, please reply. Thanks </p><p></p><p>in advance....</p><p>------------------------</p><p>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As </p><p></p><p>System.EventArgs) Handles Button1.Click</p><p></p><p>try</p><p>Dim objEmailMessage As System.Web.Mail.MailMessage</p><p>Dim objSMTPServer As System.Web.Mail.SmtpMail</p><p>objSMTPServer.SmtpServer = "mycomputername"</p><p></p><p>objEmailMessage = New System.Web.Mail.MailMessage</p><p>With objEmailMessage</p><p>.To = "destinationemail@address.com"</p><p>.From = txtFrom.Text</p><p>.Subject = "Great Job!"</p><p>.Body = "Want all my money?"</p><p></p><p>End With</p><p></p><p>objSMTPServer.Send(objEmailMessage)</p><p>catch exc as exception</p><p>response.write(exc.innerexception.innerexception.message)</p><p>end try</p><p>End Sub</p></blockquote><p></p>
[QUOTE="mythinky, post: 366, member: 82"] Helo, I have a problem when sending email from VB.Net application, the error message is "The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for [email]destinationemail@address.com[/email]". What is actually is the problem? How can i get out from this problem? Anyone have any idea, please reply. Thanks in advance.... ------------------------ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click try Dim objEmailMessage As System.Web.Mail.MailMessage Dim objSMTPServer As System.Web.Mail.SmtpMail objSMTPServer.SmtpServer = "mycomputername" objEmailMessage = New System.Web.Mail.MailMessage With objEmailMessage .To = "destinationemail@address.com" .From = txtFrom.Text .Subject = "Great Job!" .Body = "Want all my money?" End With objSMTPServer.Send(objEmailMessage) catch exc as exception response.write(exc.innerexception.innerexception.message) end try End Sub [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
VB.NET
VB.NET General Discussion
Error send email?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom