Click here to Skip to main content
15,882,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using godaddy windows hosting and google apps for email.
following code is for sending mail from contact us form.

http://www.codeproject.com/Tips/291669/Send-mail-using-Google-Apps

When I run this application in local, it works fine and mail delivers to destination,
but when i upload this application to live server, it gives following error.
Send Email Failed.Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Posted
Updated 1-Dec-11 22:45pm
v2

Hi,

Godaddy Don't Allow Gmail Account to Send Mail

I Have Faced Same Problem....

Better Way Configure your Domains Email Id
 
Share this answer
 
v3
Comments
Mukund Thakker 2-Dec-11 5:01am    
It is not gmail account. I have setup google apps for my domain.
I have got solution by setting hostname as
relay-hosting.secureserver.net
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900