By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,364 Members | 1,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,364 IT Pros & Developers. It's quick & easy.

How to Send Mail using AUTHENTICATION?

P: n/a
Here is the code I have been using to send mail...

Set objCDO = Server.CreateObject("CDO.Message")
With objCDO
.To = strTo
.From = "ma****@domain.com"
.Subject = "This is the subject"
.HtmlBody = "This is the Body"
.Send
End With
Set objCDO = Nothing

It used to work fine, but recently our mail server changed and now it
requires that AUTHENTICATION be present. How can I adjust the above code so
that I can authenticate using a username and password?

Much thanks!!
Aug 28 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"AbraAbraCadabra" <nw*@gsw-inc.comwrote in message
news:er**************@TK2MSFTNGP05.phx.gbl...
It used to work fine, but recently our mail server changed and now it
requires that AUTHENTICATION be present. How can I adjust the above code
so that I can authenticate using a username and password?
http://www.google.co.uk/search?sourc...authentication
Aug 28 '06 #2

P: n/a
>
http://www.google.co.uk/search?sourc...authentication
I read over these examples and they were helpful, but I have one question.
They seem to
indicate that I will need to put something like this into my code...

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

Are they kidding? Am I actually going to have to put the MS domain name in
my code? I'd rather not do that.

What do you think?

Abra

Aug 28 '06 #3

P: n/a
re:
They seem to
indicate that I will need to put something like this into my code...
"http://schemas.microsoft.com/cdo/configuration/sendusing"
Are they kidding? Am I actually going to have to put the MS domain name in my code? I'd rather
not do that. What do you think?
That's only a configuration schema. Try to access it directly and see what happens.

http://www.systemwebmail.com/faq/3.8.aspx

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"AbraAbraCadabra" <nw*@gsw-inc.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...

http://www.google.co.uk/search?sourc...authentication

I read over these examples and they were helpful, but I have one question. They seem to
indicate that I will need to put something like this into my code...

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

Are they kidding? Am I actually going to have to put the MS domain name in my code? I'd rather
not do that.

What do you think?

Abra

Aug 28 '06 #4

P: n/a
>
That's only a configuration schema. Try to access it directly and see what
happens.

http://www.systemwebmail.com/faq/3.8.aspx
I'm sorry I don't quite understand what you mean. How would I write some
code that would send mail using authentication without having to include the
MS domain in it? I don't mean to ask you do solve the problem for me, but I
have been trying to understand this process for days now. Would it be an
easy thing for you to write some code that will send a message without
including the MS domain in it?
Aug 28 '06 #5

P: n/a
re:
I'm sorry I don't quite understand what you mean.
Apparently not.

re:
How would I write some code that would send mail using authentication without having to include
the MS domain in it?
Because the schema authentication is provided by Microsoft, for your benefit.

Maybe you should rephrase your question.

Why are you so reticent to include Microsoft's domain in your code,
if the code requires authentication schemas which Microsoft provides, for free.

re:
write some code that will send a message without including the MS domain in it?
Your only alternative is not to send authenticated mail via CDO, in ASP.NET 1.1.

You could, for example, upgrade to ASP.NET 2.0 (free upgrade),
where you don't have to use neither CDO nor the Microsoft Schemas:

http://www.systemnetmail.com/faq/4.2.aspx

All you have to do, if you upgrade, is use :

smtp.Credentials = new NetworkCredential("username", "secret");

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"AbraAbraCadabra" <nw*@gsw-inc.comwrote in message news:eB**************@TK2MSFTNGP04.phx.gbl...

That's only a configuration schema. Try to access it directly and see what happens.

http://www.systemwebmail.com/faq/3.8.aspx
I'm sorry I don't quite understand what you mean. How would I write some code that would send
mail using authentication without having to include the MS domain in it? I don't mean to ask you
do solve the problem for me, but I have been trying to understand this process for days now.
Would it be an easy thing for you to write some code that will send a message without including
the MS domain in it?

Aug 28 '06 #6

P: n/a

I have a complete 1.1 and 2.0 examples at my blog.

Which has a .config section dedicated to using different authentication
models.

http://sholliday.spaces.live.com/ 2/8/2006 entry

"AbraAbraCadabra" <nw*@gsw-inc.comwrote in message
news:er**************@TK2MSFTNGP05.phx.gbl...
Here is the code I have been using to send mail...

Set objCDO = Server.CreateObject("CDO.Message")
With objCDO
.To = strTo
.From = "ma****@domain.com"
.Subject = "This is the subject"
.HtmlBody = "This is the Body"
.Send
End With
Set objCDO = Nothing

It used to work fine, but recently our mail server changed and now it
requires that AUTHENTICATION be present. How can I adjust the above code
so
that I can authenticate using a username and password?

Much thanks!!


Aug 28 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.