473,396 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to Send Mail using AUTHENTICATION?

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
6 1681
"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
>
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
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
>
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tom Petersen | last post by:
Ok, I'm 99.9999999999999999999% sure there haven't been any code changes, since the date stamps of the code are older than any email 'failures' The email piece quit working using the mail.send. ...
1
by: Rodrigo | last post by:
I'm trying to send an email message using my SMTP server that requires authentication. How can I do that? My code is: Dim email As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage...
0
by: amallik | last post by:
//The following 3 lines of codes necessary if smtp server needs authenticatio mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication for smtp...
5
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
1
by: Max | last post by:
hi I used mailmessage object to send the mail, my smtp server don't require authentication, when i try to send the mail it shows error. following is the code to send mail. Dim mymail As New...
4
by: Max | last post by:
hi I am using System.Web.Mail.MailMessage with System.Web.Mail.SmtpMail to send mail. now the my question is, Is it compulsory to add fields smtpauthenticate, sendusername and sendpassword...
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
8
by: shapper | last post by:
Hello, I am trying to send an email using Asp.Net 2.0. I am getting the following error: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: No such...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.