从Web服务器自动发送电子邮件 [英] send e-mails automatically from the web server

查看:333
本文介绍了从Web服务器自动发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai,
我开发了Windows服务,用于自动发送电子邮件.问题是邮件不是从服务器发送的,它在本地正常工作".我可以做什么.请与我分享信息.


在此先感谢.

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.

推荐答案

这将取决于各种各样的事情-可能是身份验证,可能是您的代码,可能是您期望发生某种在ASP.NET环境中不会发生的事情.
此发送电子邮件的代码有效:在C#中发送电子邮件带有或不带有附件:通用例程. [ ^ ]-将其与您的代码进行比较,并确认您已做所有必要的事情.

如果那没有帮助,那么我们需要知道您的操作方式-一个很好的一般说明,而不是整个项目的转储!
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!


这篇关于从Web服务器自动发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆