由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - c# smtpclient's atthenication
相关主题
How can .Net Web App get local PC Credentials[转载] local smtp server doesn't send out email...
NetworkCredential 认证方式的问题ASP.NET 如何在 Shared Hosting 上发自动邮件?
Help!!!How to open a file on the networkmvc pros and cons
Help please: Why IIS requirs username and password?Summary: 2 个web form之间如何传参数?
[合集] asp 打开oracle数据库问题。ASPNET 访问SQL Server 2005 被拒
A question on authentication and cookie网页中没有id的元素怎么submit?
web service Re: .NET 入门系列(1)--什么是.NETinternet programming in C#
.Net remoting vs web servicePass passwords etc sensitive info
相关话题的讨论汇总
话题: smtpclient话题: c#话题: auth
进入DotNet版参与讨论
1 (共1页)
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?
n*********g
发帖数: 75
2
you can pass in username and password
using some properties.

【在 WB 的大作中提到】
: 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?

n*********g
发帖数: 75
3
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


【在 n*********g 的大作中提到】
: you can pass in username and password
: using some properties.

x*g
发帖数: 689
4
这个是.net 1.1的。
2.0下用的是smtpclient, 但是google半天
好像不工作。
谁知道在。net 2.0下如何发email? (要用
username, password的)

helps

【在 n*********g 的大作中提到】
: 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
5

Yes.for google use port 587.
just google it

【在 WB 的大作中提到】
: 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?

a9
发帖数: 21638
6
587?哪来的?明明是465
hotmail不支持smtp.

【在 k****i 的大作中提到】
:
: Yes.for google use port 587.
: just google it

k****i
发帖数: 1072
7
465 doesn't work for some people(including me). But 587 works for me a year
back

【在 a9 的大作中提到】
: 587?哪来的?明明是465
: hotmail不支持smtp.

N********n
发帖数: 8363
8

try to call sendAsync instead of send

【在 x*g 的大作中提到】
: 这个是.net 1.1的。
: 2.0下用的是smtpclient, 但是google半天
: 好像不工作。
: 谁知道在。net 2.0下如何发email? (要用
: username, password的)
:
: helps

1 (共1页)
进入DotNet版参与讨论
相关主题
Pass passwords etc sensitive info[合集] asp 打开oracle数据库问题。
authenticationA question on authentication and cookie
asp.net问题急问(初级)web service Re: .NET 入门系列(1)--什么是.NET
about preventing history back in ASP.NET.Net remoting vs web service
How can .Net Web App get local PC Credentials[转载] local smtp server doesn't send out email...
NetworkCredential 认证方式的问题ASP.NET 如何在 Shared Hosting 上发自动邮件?
Help!!!How to open a file on the networkmvc pros and cons
Help please: Why IIS requirs username and password?Summary: 2 个web form之间如何传参数?
相关话题的讨论汇总
话题: smtpclient话题: c#话题: auth