通过Web服务发送邮件. [英] Sending Mail through the webservice.
问题描述
我正在从事网络服务. DAL,业务逻辑和Web服务均由我处理.我已经编写了用于向客户端发送邮件的代码.当我在本地测试Web服务时,它工作正常.邮件通过Web服务发送到特定的客户端.但是,当我从具有我的Web服务引用的另一个项目中测试Web服务时,没有结果返回,甚至邮件也没有发送.当我测试Web服务时,它会发送出去.所以我不明白为什么会这样.而且也没有得到错误.
当我在本地测试Web服务时,我会得到此结果,并且还会发送邮件:
{[{"Result":密码已成功发送到您的EmailID"}]}
但是,当我通过调用特定的Web服务从一个引用了我的Web服务的项目中测试相同的服务时,我得到的结果为:
{[{"Result":"}]}
而且邮件也不会发送.请帮助我知道我要去哪里了.
在此先感谢.........
Hi,
I am working on webservices. The DAL, Business Logic and webservice all are handled by me. I have written a code for sending a mail to client. It works fine when i test the webservice locally. The mail gets send to particular client through the webservice. But when i test the webservice from another project having a reference of my webservice no result is returned and even mail is also not been sent. When i am testing the webservice it gets send. So i am not getting that why this is happening. And also not getting the error.
When i am testing the webservice locally i get this result and also mail is sent :
{[{"Result":"Password Send Successfully To Your EmailID"}]}
But when i am testing the same service from a project which is having a reference of my webservice by calling that particular webservice i get the result as :
{[{"Result":""}]}
and also mail doesn''t get send. Please help me to know where i am going wrong.
Thanks in advance........
推荐答案
可能是托管Web服务的帐户问题吗?
只是一个猜测!
Could it be account issue under which web service has been hosted?
Only a Guess!
这篇关于通过Web服务发送邮件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!