Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hai,
i develop a windows service for sending emails automatically. the prob is "mails not sending from server, locally its working fine." what i can do. please share information to me.


Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 10-Dec-11 2:10am    
Any code to fix?
--SA

1 solution

It's going to depend on a huge range of things - it could be authentication, it could be your code, it could be you are expecting something to happen that just does not occur in an ASP.NET environment.
This code to send emails works: Sending an Email in C# with or without attachments: generic routine.[^] - compare it with your code and verify that you do all the necessary things.

If that doesn't help, then we need to know how you are doing this - a good general description rather than a dump of your entire project!
 
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