WB 发帖数: 170 | 1 how to set the auth para with smtpclient class,
my smtp server need auth.
for google or hotmail can i use this class to send email? |
|
x*g 发帖数: 689 | 2 这个是.net 1.1的。
2.0下用的是smtpclient, 但是google半天
好像不工作。
谁知道在。net 2.0下如何发email? (要用
username, password的)
helps |
|
WB 发帖数: 170 | 3 使用。net2 C# 2005的SmtpClient,
结果每个smtp的发信认证都通不过。
找了半天,只好使用CachedCredential, 那里面支持IP跟port还有
认证的算法。
搞了一个smtp 25 “Digest” “ID”“PWD”
生成了cachecredential
然后给SmtpClient.nc = chacheCredential.GetCredtial(IP,。。。)
结果还是认证失败,
哪位高手可以搞定?
ms的服务器(smtp)认证到底如何实现? |
|
n*********g 发帖数: 75 | 4 you can pass in username and password
using some properties. |
|
|
k****i 发帖数: 1072 | 6
Yes.for google use port 587.
just google it |
|
a9 发帖数: 21638 | 7 587?哪来的?明明是465
hotmail不支持smtp. |
|
k****i 发帖数: 1072 | 8 465 doesn't work for some people(including me). But 587 works for me a year
back |
|
N********n 发帖数: 8363 | 9
try to call sendAsync instead of send |
|
o****e 发帖数: 916 | 10 godaddy shared hosting uses medium trust, your .net code (smtpclient) to
send email can only use the godaddy smtp server. i didn't buy any extra
service, and it works just fine. |
|
|