Click here to Skip to main content
15,915,160 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i had built a simple email program to send email. Tested using smtp.mail.yahoo.com, OK. Able to send and did received the email sent. But when i use this program in my company, encountered exception: Request for the permission of type "System.Net.Mail.SmtpPermission System, Version = 2.0.0.0 Culture=Neutral Public Key = bla bla bla failed. My company uses microsoft outlook and i have inputted my outlook credential and the correct host. Can anybody help?
Posted
Comments
AlexPizzano 16-Mar-11 13:17pm    
no it is a winApp

Is this an ASP application? If so try increasing your permissions. In web.config:
<trust level="Full" originurl="" />
 
Share this answer
 
Could it be a problem in the advanced options in your connection data? Ports, starting session in your pop before the smtp? your smtp needs credentials? ...
 
Share this answer
 
When ever you install the application in server the general SMTP for yahoo / G mail will not work so you have set the particular SMTP client and a valid email address to send email after installing in server....
 
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