必需的ASP.net SMTP帮助 [英] ASP.net SMTP Help Required

查看:140
本文介绍了必需的ASP.net SMTP帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在ASP.net中进行了申请,
我已经在该应用程序中使用abc电子邮件地址制作了SMTPClient,我想将其上传到网络服务器上进行托管,然后我想将电子邮件地址更改为xyz,
我想知道我是否需要重建项目然后上传文件?
还是我只是更改了该特定文件,然后将其上传到服务器而不进行重建?

I have made an application in ASP.net,
I have made and SMTPClient in that application with abc email address,i want to upload it on webserver for hosting,and there i want to change the email address to xyz,
I want to know that should i need to rebuild the project then upload files?
Or i simply make change to that particular file and upload it to server without rebuilding??

推荐答案

而不是在代码中添加电子邮件ID的最佳做法是将其放入Web配置文件中,然后从后面的代码中获取它
instead of Add the email id in the code the best practice is to put it in the web config file and then retrieve it from code behind


这篇关于必需的ASP.net SMTP帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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