I have a function that sends email. My website is written in Visual Basic and my email sender function is below:
Try Dim SmtpServer As New SmtpClient() Dim mail As New MailMessage() SmtpServer.Host = "smtp.test.edu" mail = New MailMessage() mail.From = New MailAddress("email@example.com") mail.To.Add(myemail) 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 SmtpServer.Send(mail) Catch ex As Exception MsgBox(ex.ToString) Console.WriteLine(ex.ToString())
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?