Skip to main content
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Akshay
New

Error Sending email from Gmail SMPT

hi guys,

 

I have written a c# code to send an email to the registered user as soon as he is registered via Gmail SMTP port no. 25. When I test it in my local environment, the emails are sent properly but as soon as I host it on GoDaddy server it fails and the emails are not sent.

 

Please Guide me through this issue.

2 REPLIES 2
MichaelScott
Resolver II

Hey!

What type of hosting are you using?

Are you getting any errors back when it trys to send?

hi,

 

I am using Plesk hosting.

Stack trace:

at System.Net.Mail.SmtpClient.Send(MailMessage message)
at BusinessLayer.BL_Registration.SendEmail()

 

Target Site: 

Void Send(System.Net.Mail.MailMessage)