由买买提看人间百态

topics

全部话题 - 话题: smtpclient
(共0页)
WB
发帖数: 170
1
来自主题: DotNet版 - c# smtpclient's atthenication
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
来自主题: DotNet版 - c# smtpclient's atthenication
这个是.net 1.1的。
2.0下用的是smtpclient, 但是google半天
好像不工作。
谁知道在。net 2.0下如何发email? (要用
username, password的)

helps
WB
发帖数: 170
3
来自主题: DotNet版 - NetworkCredential 认证方式的问题
使用。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
来自主题: DotNet版 - c# smtpclient's atthenication
you can pass in username and password
using some properties.
n*********g
发帖数: 75
5
来自主题: DotNet版 - c# smtpclient's atthenication
here is an exmaple to use a mail sever that need authentication, hope it helps
.
MailMessage mail = new MailMessage();
mail.To = to;
mail.From = from;
mail.Subject = sub;
mail.Body = body;
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", user); //set your username here
k****i
发帖数: 1072
6
来自主题: DotNet版 - c# smtpclient's atthenication

Yes.for google use port 587.
just google it
a9
发帖数: 21638
7
来自主题: DotNet版 - c# smtpclient's atthenication
587?哪来的?明明是465
hotmail不支持smtp.
k****i
发帖数: 1072
8
来自主题: DotNet版 - c# smtpclient's atthenication
465 doesn't work for some people(including me). But 587 works for me a year
back
N********n
发帖数: 8363
9
来自主题: DotNet版 - c# smtpclient's atthenication

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.
a*****e
发帖数: 1700
11
来自主题: Programming版 - haskell有潜力成为最好的web framework
Haskell 的 smtp/email 库好多个啊,我用过这个
http://hackage.haskell.org/package/SMTPClient-1.1.0
用起来很简单。不知道你为什么说没文档没例子。
(共0页)