cancel
Showing results for 
Search instead for 
Did you mean: 
Fatih
Novice

Email Sender functionality never worked when I deployed to Plesk Hosting

Hi, 

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("test@test.edu")
                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?

1 REPLY
Moderator
Moderator

Re: Email Sender functionality never worked when I deployed to Plesk Hosting

Hello @Fatih!

 

Thank you for posting. I've moved your post to a board that I think will get it some more attention. 

 

Heather - GoDaddy | Community Moderator
24/7 support available at x.co/247support