如何使用用户SMTP服务器发送邮件 [英] How to send mails using users SMTP server

查看:233
本文介绍了如何使用用户SMTP服务器发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谢谢回复,





我们正在使用asp.net实施CRM应用程序。

In我们想使用用户的smtp服务器而不是我们的smtp服务器发送邮件。



我们想从用户那里获取smtp凭据并用于发送邮件。



如何使用不同的用户SMTP服务器发送邮件。





谢谢和问候

Lakshman

Thank you Reply,


We are implementing CRM Application using asp.net.
In that we want to send mails using user's smtp server not our smtp server.

we want to take smtp credentials from user and used in sending mails.

How to send mails with different respective user SMTP Servers.


Thanks & Regards
Lakshman

推荐答案

如果您获得 SMTP主机等详细信息, SMTP端口 SMTP凭据,然后只需更换特定属性的所有输入代码即可。



查看我的旧回答 [ ^ ],我在那里谈到发送使用Gmail收发邮件。因此,如果您从用户输入的输入中替换所需的值,那么您就完成了。
If you get details like SMTP Host, SMTP Port and SMTP Credentials, then it is just a matter of the code to replace all the inputs at particular properties.

See my old answer[^], where I talked about sending mail using gmail. So, if you replace the required values from inputs entered by the user, then you are done.


这篇关于如何使用用户SMTP服务器发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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