C#发送电子邮件SMTP问题(C# sending email SMTP problems)

   IT问题网   2020-06-29 00:00:00

问 题

亲爱的,我正在使用visual studio 2008 3.4 .net框架工作。

i想发送电子邮件,每件事情都可以但我不知道我的smtp服务器是什么我怎么知道知道我想要从hotmail发送电子邮件...

最好的问候

解决方案

在端口25或587上使用smtp.live.com。 / blockquote>
hotmail的帮助系统应该为您提供smtp服务器的确切名称。有些建议也可以在这里找到 [ ^ ]。

步骤







打开dos命令提示符

键入"nslookup"。

将显示您计算机的dns服务器名称和ip地址。

键入"set type = mx" - 这将导致nslookup仅从dns服务器返回所谓的mx(mail exchange)记录。

例如,输入"hotmail.com"或使用您自己的域名。

结果返回应该类似于:







服务器: ns1.xxx.com



地址:192.168.0.1







非权威回答:



hotmail.com mx偏好= 5,邮件转换器= mx2.hotmail.com



hotmail.com mx偏好= 5,邮件转换器= mx3.hotmail.com



hotmail.com mx偏好= 5 ,mail exchanger = mx4.hotmail.com



hotmail.com mx preference = 5,mail exchanger = mx1.hotmail.com







hotmail.com nameserver = ns1.hotmail.com



hotmail .com nameserver = ns2.hotmail.com



hotmail.com nameserver = ns3.hotmail.com



hotmail.com nameserver = ns4.hotmail.com



mx2.hotmail.com互联网地址= 65.54.254.145



mx2.hotmail.com互联网地址= 65.54.252.230



mx2.hotmail.com互联网地址= 65.54.166.230



mx3.hotmail.com互联网地址= 65.54.254.140



mx3.hotmail.com互联网地址= 65.54.253.99



mx3.hotmail.com互联网地址= 65.54.167.5



mx4.hotmail.com互联网地址= 65.54.254.151



mx4.hotmail.com互联网地址= 65.54.253.230



mx4.hotmail.com互联网地址= 65.54.167.230



mx1.hotmail.com互联网地址= 65.54.254.129



mx1.hotmail .com互联网地址= 65.54.252.99



mx1.hotmail.com互联网地址= 65.54.166.99



ns1.hotmail.com互联网地址= 216.200.206.140



ns2.hotmail.com互联网地址= 216.200.206.139



ns3.hotmail.com互联网地址= 209.185.130.68



ns4.hotmail.com互联网地址= 64.4.29.24







请注意"非权威性答案"之后的第一行。





"mx首选项"指定要使用的邮件服务器和在哪个顺序。数字越小,邮件服务器越优选。在这种情况下,由于每个邮件服务器的首选项相同,您可以使用四个"邮件交换器"中的任何一个。

标签:发送电子邮件问题



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

需要帮助使用opengl在c ++中构建迷宫(Need help in building maze in c++ using opengl)

problem this is my code for solution path, i used random ...

使用文本框将一个选项卡值添加到另一个选项卡。(one tab value to another tab both using text box.)

problem how to assign one tab value to another tab if bot ...

使用WSAsy-Model的Win32套接字(Win32 Socket using WSAsy-Model)

problem hi !i want to use the wsaasyncselect ...

一次单击添加空白记录(one click add blank record)

problem dear sir, when was clicking edit link button ther ...

关于sql'列表的问题(the problem which is about listing of sql')

problem i want to get 3 datas which has been added lastly ...

DataGridView绑定源datacontext.ExecuteQuery allowusertoaddrows已禁用(DataGridView Binding Source datacontext.ExecuteQuery allowusertoaddrows disabled)

problem using the following code: iqueryable data = db.e ...

我想在每个页面上显示用户名(I want to display username on every page)

problem can i use loginview control without login control ...

解释如何重载.ToString()方法......(Explain how to overload .ToString() method...)

problem help me friends... :) thanks in advance... soluti ...

UserControl编辑对象(UserControl to edit an object)

problem hello, i have a usercontrol that has some fields ...

使用任何网络服务获取英国的邮政编码和地址(get postal code and address of UK using any web service)

problem hi, i have 2 text box. 1 for u.k. p ...

Windows 7的应用程序(application for windows 7)

problem do i need to install anything to program an app u ...

将控件添加到datagridview(add control to datagridview)

problem hi, there is a control called nbtext (which forma ...

多列和网格下拉列表(无自动完成)(dropdown with multicolumn and grid(no autocomplete))

problem i need a dropdown with multicolumn like the follo ...

如何创建oracle数据库DSN?(how to create oracle database DSN)

problem respected sir/mam i have a oracle database in my ...

获取dataTable中字符串的长度(get length of a string in dataTable)

problem hiii all i make a for loop on datatab ...

使用大型数据库(working with large databases)

problem hi, we use sql server 2008 database ...

数据列表中的CountDown计时器(CountDown timers in a datalist)

problem im developing a auction website where students fr ...

插入记录器的问题(problem in inserting recorod)

problem cmd = new sqlcommand("insert into login1 values" ...

显示行到列(Display Row to Column)

problem how row to column value display in crystal report ...

Gridview中的复选框(Check box in Gridview)

problem if i check checkbox in gridview after that if i c ...