Email Sender functionality never worked when I deployed to Plesk Hosting
I have a function that sends email. My website is written in Visual Basic and my email sender function is below:
Dim SmtpServer As New SmtpClient()
Dim mail As New MailMessage()
SmtpServer.Host = "smtp.test.edu"
mail = New MailMessage()
mail.From = New MailAddress("firstname.lastname@example.org")
mail.Subject = myfname.ToUpper + " " + mylname.ToUpper + "- New Registration"
mail.Body = "Hello " + myfname + " " + mylname + "! <br /> Your registration has been received and your credentials have been generated in order to use the calculator. <br />"
mail.IsBodyHtml = True
Catch ex As Exception
The email function and everything worked fine on my local dev machine. But they never worked when I deployed to the Plesk Domain. What am I missing?