Commerce Server General - Authenticated Direct Mailer Url content

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > April 2004 > Authenticated Direct Mailer Url content





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Authenticated Direct Mailer Url content
Louis Fournier

2004-04-01, 11:40 am


Hi alls,

I am using the Direct Mailer to send e-newsletter campaigns. I specify a Url
which is on a staging server to build the Message body as HTML. Everything
works fine when the HTTP call is anonymous. But I would like to specify a
Url that is protected with NT/Athentication as an HTML body. I checked the
web Access logs on the requested server and the Direct Mailer does not pass
its windows credentials (i.e. Service User). Is there a way to do that?

Thanks in advance,

Louis Fournier


Caesar Samsi[MSFT]

2004-04-18, 10:52 am

Hi Louis,

Have you made sure that the protected web page is secured? (i.e. does not
allow anonymous users to access the page).

If anonymous users are allowed to access the page. Direct Mailer won't send
its credentials (it'll use anonymous since it was not challenged for
credentials).

If the page is in fact secured (i.e. when you browse it using a regular
browser anonymously you should see a logon dialog box challenge), then the
issue might be in the page itself.

To debug the issue further, you might want to put some very simple code in
the web page that renders the email (something like "I am user:" <insert
system variable of logon user here> ) to see if the page runs at all.

Thanks, Caesar.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation. All rights
reserved. Use of included script samples are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm


"Louis Fournier" <123@345.com> wrote in message
news:%23lvZPEAGEHA.2404@TK2MSFTNGP11.phx.gbl...
>
> Hi alls,
>
> I am using the Direct Mailer to send e-newsletter campaigns. I specify a

Url
> which is on a staging server to build the Message body as HTML. Everything
> works fine when the HTTP call is anonymous. But I would like to specify a
> Url that is protected with NT/Athentication as an HTML body. I checked the
> web Access logs on the requested server and the Direct Mailer does not

pass
> its windows credentials (i.e. Service User). Is there a way to do that?
>
> Thanks in advance,
>
> Louis Fournier
>
>



David Messner [MSFT]

2004-04-27, 9:35 pm

I looked into this issue a little bit. The ComposeDMLMessage component is
the component responsible for using the CDO object model to contact the Web
server and generate the mail message from the returned HTML. CDO does
support providing a username/password for NTLM or Basic authentication, but
the DirectMailer always passes an empty string for both of these
parameters. The only way to achieve this would be to replace
ComposeDMLMessage in the dmlpipe.pcf pipeline with your own component and
provide the username/password.

This is the method DirectMailer uses on the CDO IMessage interface:

[C++]
HRESULT CreateMHTMLBody(
BSTR URL,
CdoMHTMLFlags Flags=cdoSuppressNone,
BSTR UserName,
BSTR Password
);

-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation. All rights
reserved.
--------------------
From: "Louis Fournier" <123@345.com>
Subject: Authenticated Direct Mailer Url content
Date: Thu, 1 Apr 2004 10:50:29 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Message-ID: <#lvZPEAGEHA.2404@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: door.ml.nurun.com 216.113.12.98
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:13535
X-Tomcat-NG: microsoft.public.commerceserver.general


Hi alls,

I am using the Direct Mailer to send e-newsletter campaigns. I specify a Url
which is on a staging server to build the Message body as HTML. Everything
works fine when the HTTP call is anonymous. But I would like to specify a
Url that is protected with NT/Athentication as an HTML body. I checked the
web Access logs on the requested server and the Direct Mailer does not pass
its windows credentials (i.e. Service User). Is there a way to do that?

Thanks in advance,

Louis Fournier



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com