Here is the code I have been using to send mail...
Set objCDO = Server.CreateOb ject("CDO.Messa ge")
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!! 6 1707
"AbraAbraCadabr a" <nw*@gsw-inc.comwrote in message
news:er******** ******@TK2MSFTN GP05.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
>
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.microso ft.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
re:
They seem to
indicate that I will need to put something like this into my code...
"http://schemas.microso ft.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/
=============== =============== =====
"AbraAbraCadabr a" <nw*@gsw-inc.comwrote in message news:%2******** ********@TK2MSF TNGP04.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.microso ft.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
>
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?
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.Credential s = new NetworkCredenti al("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/
=============== =============== =====
"AbraAbraCadabr a" <nw*@gsw-inc.comwrote in message news:eB******** ******@TK2MSFTN GP04.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?
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
"AbraAbraCadabr a" <nw*@gsw-inc.comwrote in message
news:er******** ******@TK2MSFTN GP05.phx.gbl...
Here is the code I have been using to send mail...
Set objCDO = Server.CreateOb ject("CDO.Messa ge")
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!!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. If there haven't been any
changes made to previously working code, where do I look for the problem
now? I restarted the SMTPservice in IIS. Our real email is hosted
remotely, I checked with the admin and she said no changes were made, i.e.,
not...
|
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
email.From = "me@mydomain.com.br"
email.To = txtemail.Text
email.Subject = "We have receveid your comments"
email.BodyFormat = System.Web.Mail.MailFormat.Html
email.Body ="<html>" & _
|
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 serve
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "your_username"); //set your username here for the smtp serve
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",...
|
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 with this code:
MailMessage msgMail = new MailMessage();
msgMail.To = "test@address.com";
msgMail.From = "from@address.com";
msgMail.Subject = "Mail Example Subject";
|
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 identifies itself as the
computer name which is not in domain.com format, triggering spam filter
problems).
Instead, I want to have my code send through an SMTP server of a company
that we pay for mail service. But they require a username and password....
| |
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 MailMessage
Dim smtp As SmtpMail
smtp.SmtpServer = "mailhost.gujarat.gov.in"
mymail.To = "mahesh@cybersurfindia.com"
|
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 fields to MailMessage Object????.
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",
"1")
|
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 free edition for anti-virus.
I use an ISP provider from my country and according to them I do not
need to perform authentication while sending mails through their SMTP
address. Thus I am using external SMTP server. I don't have IIS
installed...
|
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 user here at
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender,
MailAddressCollection recipients, String deliveryNotify,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |