473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Authentication is required for relay

Hello

I am getting the following error on a forgotten.aspx page:

http://www.dimadayoub.net/forgot.aspx

Mailbox unavailable. The server response was: Authentication is required for relay

This is the code I have:

Expand|Select|Wrap|Line Numbers
  1. myMessage.From = New MailAddress("info@mysite.net")
  2. myMessage.To.Add(New MailAddress(strEmailValue)) 'user's email
  3. myMessage.Subject = ("Password Reset Request")
  4.  
  5. myMessage.Body = ""
  6. myMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
  7. myMessage.IsBodyHtml = True
  8. myMessage.Priority = MailPriority.Normal
  9.  
  10. HTML code to display header in email and link for user to click on to reset password
  11.  
  12. myMessage.AlternateViews.Add(HtmlMessage)
  13.  
  14. Smtpserver.DeliveryMethod = SmtpDeliveryMethod.Network
  15. Smtpserver.Host = ("mail.server")
  16. Smtpserver.Port = 25
  17. Smtpserver.EnableSsl = False
  18. Dim basicAuthenticationInfo As New System.Net.NetworkCredential("info@mysite.net", "pwd")
  19. Smtpserver.Credentials = basicAuthenticationInfo
  20. Smtpserver.Send(myMessage)
  21.  
  22. myMessage.Dispose()
  23. myMessage = Nothing
  24. Smtpserver = Nothing
Is there anything here, please, that looks obviously wrong? I have checked with my Web hosting service, and the SMTP port, password, and host (mail.server) are correct (they work in another part of the site).

Thanks.
Jan 23 '18 #1
0 1517

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bob Bedford | last post by:
when sending an email from the mail() function I get this message: mail(): SMTP server response: 550 5.7.1 <test@test.com>... Relaying denied. Proper authentication required I did set the...
6
by: JezB | last post by:
I'm getting the above error thrown somewhere in the code: XPathDocument xPathDocument = new XPathDocument(FileLocation); XPathNavigator xPathNavigator = xPathDocument.CreateNavigator();...
2
by: John | last post by:
Hi My ms access app is posting to a web site using ms internet transfer control. Client pcs where app is running are connected to a small business server 20003/ISA Server 2000 server. The app...
1
by: Ily | last post by:
Hi I have the following code: Dim cred1 As New System.Net.NetworkCredential("myusername", "mypassword", "mydomainname") Dim cc As New System.Net.CredentialCache cc.Add(New...
2
by: davidcbrown | last post by:
I started using .NET 2003 and my first application is to parse an HTML form. But I am behind an ISA firewall and get "(407) Proxy Authentication Required" with the following code. The proxy...
4
by: Morten Snedker | last post by:
I'm trying to download a file. I've tried both using webclient and the httpWebRequest. Either way it returns a "407 proxy authentication required". The program is to be run externally, so...
2
by: carl.reimann | last post by:
In using a simple smtp routine: # begin example >>> import smtplib >>> server = smtplib.SMTP('outgoing.verizon.net') >>> server.sendmail('my@address.net', 'another@address.net', """To:...
2
by: rcp | last post by:
Hi all, I've read all posts from all existing threads and none of them worked to solve my problem, although its exactly the same. I'll try to explain my case and see if a kind soul could help me...
3
by: Learning.Net | last post by:
Hi All, I have an windows application created in C# &it is running fine on several of our customer. It does a httpWebrequest in the background. Everything was working fine but some customer are...
2
by: krishnakrish | last post by:
Hi, My name is krishna. I am using asp.net 2.0 with C#. I amusing Windows XP professional as OS. When I post some data to an external web server I get the error as "The Remote server returned an...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.