Thursday, March 29, 2012

MailMessage question

Hi MSDN Team!

I have a doubt about the "MailMessage" class in Framework .NET 1.1.
My SMTP server works in a local network that no have access to the internet
for security reasons. And in my network we have an application that send
emails to other department inside the company using us SMTP server that
requires authentication...

I'd like to know why when I use the "MailMessage" Class with "SMTPServer"
class to authenticate in my SMTP Server I have to send an URL as
"http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is it the
unique mode to send emails in my situation? What's the other mode to send
emails without pass by Microsoft's URL?

Thanks,

--
MSG Servicos de Informatica
Rio de Janeiro / Brazil=?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
<message@.newsgroup.nospam> wrote in
news:B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com:

> I'd like to know why when I use the "MailMessage" Class with
> "SMTPServer"
> class to authenticate in my SMTP Server I have to send an URL as
> "http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is
> it the unique mode to send emails in my situation? What's the other
> mode to send emails without pass by Microsoft's URL?

You'll need to be using .NET 1.1 to use these fields.

With the System.Web.Mail classes, you'll have to pass in these fields,
since authentication is not supported out of the box.

You might want to take a look at the field:
http://schemas.microsoft.com/cdo/co...ation/sendusing

0 is basic. 1 is NTML. 2 is SMTP authentication.

--
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Thanks for Lucas's inputs,

Hi Friend,

For the "http://schemas.microsoft.com/cdo/configuration/ " , it's not a
normal URL, it's a configuration URI(maybe we should say it's a key for
configuring certain setting of the CDO object):

#http://schemas.microsoft.com/cdo/configuration/ Namespace
http://msdn.microsoft.com/library/e...a_configuration.
asp?frame=true

In fact, the System.Web.Mail components in .net framework is using the CDO
object underlying. And the
http://schemas.microsoft.com/cdo/configuration/ contains a collection of
schema URIs( keys) to identify a set of settings of the CDO component , we
can configure them thorugh these URIs at runtime.

BTW, here is a FAQ site of System.Web.Mail which contains may common
question on the web mail components:

http://www.systemwebmail.com/

Hope also helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

-------
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: MailMessage question
| From: Lucas Tam <REMOVEnntp@.rogers.com>
| References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
| Organization: None of Your Business!!!
| Message-ID: <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
| User-Agent: Xnews/??.01.30
| X-Face:
#gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
| Reply-To: REMOVEnntp@.rogers.com
| Lines: 25
| X-Complaints-To: abuse@.easynews.com
| X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
| Date: Thu, 11 Aug 2005 15:11:22 GMT
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornad o.fastwebnet.it!tiscali!ne
wsfeed1.ip.tiscali.net!news.glorb.com!newsfeed2.ea synews.com!easynews.com!ea
synews!easynews-local!fe04.news.easynews.com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:117418
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
| <message@.newsgroup.nospam> wrote in
| news:B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com:
|
| > I'd like to know why when I use the "MailMessage" Class with
| > "SMTPServer"
| > class to authenticate in my SMTP Server I have to send an URL as
| > "http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is
| > it the unique mode to send emails in my situation? What's the other
| > mode to send emails without pass by Microsoft's URL?
|
| You'll need to be using .NET 1.1 to use these fields.
|
| With the System.Web.Mail classes, you'll have to pass in these fields,
| since authentication is not supported out of the box.
|
| You might want to take a look at the field:
| http://schemas.microsoft.com/cdo/co...ation/sendusing
|
| 0 is basic. 1 is NTML. 2 is SMTP authentication.
|
| --
| Lucas Tam (REMOVEnntp@.rogers.com)
| Please delete "REMOVE" from the e-mail address when replying.
| http://members.ebay.com/aboutme/coolspot18/
|
And if I do not have internet connection in my intranet where the
application is running? How would I reach
"http://schemas.microsoft.com/cdo/configuration/" ?

WHAT CAN I DO IN THIS SITUATION??

--
MSG Servicos de Informatica
Rio de Janeiro / Brazil

"Steven Cheng[MSFT]" wrote:

> Thanks for Lucas's inputs,
> Hi Friend,
> For the "http://schemas.microsoft.com/cdo/configuration/ " , it's not a
> normal URL, it's a configuration URI(maybe we should say it's a key for
> configuring certain setting of the CDO object):
> #http://schemas.microsoft.com/cdo/configuration/ Namespace
> http://msdn.microsoft.com/library/e...a_configuration.
> asp?frame=true
> In fact, the System.Web.Mail components in .net framework is using the CDO
> object underlying. And the
> http://schemas.microsoft.com/cdo/configuration/ contains a collection of
> schema URIs( keys) to identify a set of settings of the CDO component , we
> can configure them thorugh these URIs at runtime.
> BTW, here is a FAQ site of System.Web.Mail which contains may common
> question on the web mail components:
> http://www.systemwebmail.com/
> Hope also helps. Thanks,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> -------
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | Subject: Re: MailMessage question
> | From: Lucas Tam <REMOVEnntp@.rogers.com>
> | References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
> | Organization: None of Your Business!!!
> | Message-ID: <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
> | User-Agent: Xnews/??.01.30
> | X-Face:
> #gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
> 'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
> | Reply-To: REMOVEnntp@.rogers.com
> | Lines: 25
> | X-Complaints-To: abuse@.easynews.com
> | X-Complaints-Info: Please be sure to forward a copy of ALL headers
> otherwise we will be unable to process your complaint properly.
> | Date: Thu, 11 Aug 2005 15:11:22 GMT
> | Path:
> TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornad o.fastwebnet.it!tiscali!ne
> wsfeed1.ip.tiscali.net!news.glorb.com!newsfeed2.ea synews.com!easynews.com!ea
> synews!easynews-local!fe04.news.easynews.com.POSTED!not-for-mail
> | Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.dotnet.framework.aspnet:117418
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> |
> | =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
> | <message@.newsgroup.nospam> wrote in
> | news:B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com:
> |
> | > I'd like to know why when I use the "MailMessage" Class with
> | > "SMTPServer"
> | > class to authenticate in my SMTP Server I have to send an URL as
> | > "http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is
> | > it the unique mode to send emails in my situation? What's the other
> | > mode to send emails without pass by Microsoft's URL?
> |
> | You'll need to be using .NET 1.1 to use these fields.
> |
> | With the System.Web.Mail classes, you'll have to pass in these fields,
> | since authentication is not supported out of the box.
> |
> | You might want to take a look at the field:
> | http://schemas.microsoft.com/cdo/co...ation/sendusing
> |
> | 0 is basic. 1 is NTML. 2 is SMTP authentication.
> |
> | --
> | Lucas Tam (REMOVEnntp@.rogers.com)
> | Please delete "REMOVE" from the e-mail address when replying.
> | http://members.ebay.com/aboutme/coolspot18/
> |
>
=?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?= <message@.newsgroup.nospam>
wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:

> And if I do not have internet connection in my intranet where the
> application is running? How would I reach
> "http://schemas.microsoft.com/cdo/configuration/" ?

It's an (xml) schema... not an actual URL.

--
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Yes, "http://schemas.microsoft.com/cdo/configuration/" is just a URI (not
necessarily a valid URL on the internet). It is just the same as other keys
such as:

"urn:microsoft-com:mail", "key_microsoft_mail" ....

Using such schema keys dosn't require the box be connected to the internet,
these buildin schema key will be recognized by the certain processing
application. For example, for the

"http://schemas.microsoft.com/cdo/configuration/"

it'll be recoginzed by the CDO components no matter the components is
running on a isolated box or connected to internet.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

-------
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: MailMessage question
| From: Lucas Tam <REMOVEnntp@.rogers.com>
| References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
<Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
<D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
<0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
| Organization: None of Your Business!!!
| Message-ID: <Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
| User-Agent: Xnews/??.01.30
| X-Face:
#gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
| Reply-To: REMOVEnntp@.rogers.com
| Lines: 13
| X-Complaints-To: abuse@.easynews.com
| X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
| Date: Tue, 16 Aug 2005 01:06:16 GMT
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
com!easynews!easynews-local!fe02.news.easynews.com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118141
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
<message@.newsgroup.nospam>
| wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:
|
| > And if I do not have internet connection in my intranet where the
| > application is running? How would I reach
| > "http://schemas.microsoft.com/cdo/configuration/" ?
|
| It's an (xml) schema... not an actual URL.
|
| --
| Lucas Tam (REMOVEnntp@.rogers.com)
| Please delete "REMOVE" from the e-mail address when replying.
| http://members.ebay.com/aboutme/coolspot18/
|
Thanks for the answer. This solve my question.

--
MSG Servicos de Informatica
Rio de Janeiro / Brazil

"Steven Cheng[MSFT]" wrote:

> Yes, "http://schemas.microsoft.com/cdo/configuration/" is just a URI (not
> necessarily a valid URL on the internet). It is just the same as other keys
> such as:
> "urn:microsoft-com:mail", "key_microsoft_mail" ....
> Using such schema keys dosn't require the box be connected to the internet,
> these buildin schema key will be recognized by the certain processing
> application. For example, for the
> "http://schemas.microsoft.com/cdo/configuration/"
> it'll be recoginzed by the CDO components no matter the components is
> running on a isolated box or connected to internet.
> Thanks,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> -------
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | Subject: Re: MailMessage question
> | From: Lucas Tam <REMOVEnntp@.rogers.com>
> | References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
> <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
> <D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
> <0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
> | Organization: None of Your Business!!!
> | Message-ID: <Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
> | User-Agent: Xnews/??.01.30
> | X-Face:
> #gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
> 'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
> | Reply-To: REMOVEnntp@.rogers.com
> | Lines: 13
> | X-Complaints-To: abuse@.easynews.com
> | X-Complaints-Info: Please be sure to forward a copy of ALL headers
> otherwise we will be unable to process your complaint properly.
> | Date: Tue, 16 Aug 2005 01:06:16 GMT
> | Path:
> TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
> ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
> com!easynews!easynews-local!fe02.news.easynews.com.POSTED!not-for-mail
> | Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.dotnet.framework.aspnet:118141
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> |
> | =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
> <message@.newsgroup.nospam>
> | wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:
> |
> | > And if I do not have internet connection in my intranet where the
> | > application is running? How would I reach
> | > "http://schemas.microsoft.com/cdo/configuration/" ?
> |
> | It's an (xml) schema... not an actual URL.
> |
> | --
> | Lucas Tam (REMOVEnntp@.rogers.com)
> | Please delete "REMOVE" from the e-mail address when replying.
> | http://members.ebay.com/aboutme/coolspot18/
> |
>
You're welcome :-)

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
-------
| Thread-Topic: MailMessage question
| thread-index: AcWjMpWs1bh8rNtUSlmk+cOvinTrPA==
| X-WBNR-Posting-Host: 200.142.104.78
| From: =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
<message@.newsgroup.nospam>
| References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
<Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
<D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
<0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
<Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
<z7kEXPgoFHA.3472@.TK2MSFTNGXA01.phx.gbl>
| Subject: Re: MailMessage question
| Date: Wed, 17 Aug 2005 06:50:10 -0700
| Lines: 80
| Message-ID: <F835ADA2-7CED-46C6-B46A-92E7B320704E@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118572
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thanks for the answer. This solve my question.
|
|
| --
| MSG Servicos de Informatica
| Rio de Janeiro / Brazil
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Yes, "http://schemas.microsoft.com/cdo/configuration/" is just a URI
(not
| > necessarily a valid URL on the internet). It is just the same as other
keys
| > such as:
| >
| > "urn:microsoft-com:mail", "key_microsoft_mail" ....
| >
| > Using such schema keys dosn't require the box be connected to the
internet,
| > these buildin schema key will be recognized by the certain processing
| > application. For example, for the
| >
| > "http://schemas.microsoft.com/cdo/configuration/"
| >
| > it'll be recoginzed by the CDO components no matter the components is
| > running on a isolated box or connected to internet.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > -------
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | Subject: Re: MailMessage question
| > | From: Lucas Tam <REMOVEnntp@.rogers.com>
| > | References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
| > <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
| > <D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
| > <0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
| > | Organization: None of Your Business!!!
| > | Message-ID: <Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
| > | User-Agent: Xnews/??.01.30
| > | X-Face:
| >
#gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
| > 'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
| > | Reply-To: REMOVEnntp@.rogers.com
| > | Lines: 13
| > | X-Complaints-To: abuse@.easynews.com
| > | X-Complaints-Info: Please be sure to forward a copy of ALL headers
| > otherwise we will be unable to process your complaint properly.
| > | Date: Tue, 16 Aug 2005 01:06:16 GMT
| > | Path:
| >
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
| >
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
| > com!easynews!easynews-local!fe02.news.easynews.com.POSTED!not-for-mail
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:118141
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
| > <message@.newsgroup.nospam>
| > | wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:
| > |
| > | > And if I do not have internet connection in my intranet where the
| > | > application is running? How would I reach
| > | > "http://schemas.microsoft.com/cdo/configuration/" ?
| > |
| > | It's an (xml) schema... not an actual URL.
| > |
| > | --
| > | Lucas Tam (REMOVEnntp@.rogers.com)
| > | Please delete "REMOVE" from the e-mail address when replying.
| > | http://members.ebay.com/aboutme/coolspot18/
| > |
| >
| >
|

0 comments:

Post a Comment