473,554 Members | 2,902 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDO authentication problem

Can someone explain why the following doesn't work?

<%
sch = "http://schemas.microso ft.com/cdo/configuration/"

Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s

..Item(sch & "smtpserver ") = "mail.midvalley furniture.com"
..item("http://schemas.microso ft.com/cdo/configuration/sendusing").val ue
=2
..item("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e").value
= 1
..item("http://schemas.microso ft.com/cdo/configuration/sendpassword"). value
="yadayadaya da"
..item("http://schemas.microso ft.com/cdo/configuration/sendusername"). value
="or****@myserv er.com"

..update

End With

Set cdoMessage = CreateObject("C DO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "or****@myserve r.com"
.To = "so******@somed omain.com"
.Subject = "Daily Report"
.TextBody = mailMessage

.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
If I take out the 3 authentication lines and send an email that's on
the same domain server (br***@myserver .com to ch***@myserver. com), it
goes through.
If outside the domain, I put the 3 lines back in and though I receive
no error message, the mail doesn't go through.

Thanks for any help,
Brett
Jul 19 '05 #1
2 4608

"Brett" <cl************ ***@yahoo.com> wrote in message
news:99******** *************** ***@posting.goo gle.com...
Can someone explain why the following doesn't work?

<%
sch = "http://schemas.microso ft.com/cdo/configuration/"

Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s

.Item(sch & "smtpserver ") = "mail.midvalley furniture.com"
.item("http://schemas.microso ft.com/cdo/configuration/sendusing").val ue
=2
..item("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e").val
ue = 1
.item("http://schemas.microso ft.com/cdo/configuration/sendpassword"). value
="yadayadaya da"
.item("http://schemas.microso ft.com/cdo/configuration/sendusername"). value
="or****@myserv er.com"

.update

End With

Set cdoMessage = CreateObject("C DO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "or****@myserve r.com"
.To = "so******@somed omain.com"
.Subject = "Daily Report"
.TextBody = mailMessage

.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
If I take out the 3 authentication lines and send an email that's on
the same domain server (br***@myserver .com to ch***@myserver. com), it
goes through.
If outside the domain, I put the 3 lines back in and though I receive
no error message, the mail doesn't go through.

Thanks for any help,
Brett


It could be a relaying permission problem. Check with the mail admin that
the IP of the server trying to initiate the mail session, as well as the
sendusername, aren't restricted from sending (relaying) mail to recipients
outside the mailserver's domain.

Alan
Jul 19 '05 #2
"J. Alan Rueckgauer" <vo**@dev.nul > wrote in message news:<ut******* *******@TK2MSFT NGP11.phx.gbl>. ..
"Brett" <cl************ ***@yahoo.com> wrote in message
news:99******** *************** ***@posting.goo gle.com...
Can someone explain why the following doesn't work?

<%
sch = "http://schemas.microso ft.com/cdo/configuration/"

Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s

.Item(sch & "smtpserver ") = "mail.midvalley furniture.com"
.item("http://schemas.microso ft.com/cdo/configuration/sendusing").val ue
=2

.item("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e").val
ue
= 1
.item("http://schemas.microso ft.com/cdo/configuration/sendpassword"). value
="yadayadaya da"
.item("http://schemas.microso ft.com/cdo/configuration/sendusername"). value
="or****@myserv er.com"

.update

End With

Set cdoMessage = CreateObject("C DO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "or****@myserve r.com"
.To = "so******@somed omain.com"
.Subject = "Daily Report"
.TextBody = mailMessage

.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
If I take out the 3 authentication lines and send an email that's on
the same domain server (br***@myserver .com to ch***@myserver. com), it
goes through.
If outside the domain, I put the 3 lines back in and though I receive
no error message, the mail doesn't go through.

Thanks for any help,
Brett


It could be a relaying permission problem. Check with the mail admin that
the IP of the server trying to initiate the mail session, as well as the
sendusername, aren't restricted from sending (relaying) mail to recipients
outside the mailserver's domain.

Alan


the webserver and the email server are the same machine/same ip.
sneding email thru the account from a client authenticates fine. the
asp code does not.

can MS's smtp server be set up to allow all relays or authenticate
relays per ip address?
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
9268
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. # No warranty express or implied for the accuracy, fitness to purpose
5
673
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The web.config file is configured as such: <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" name="myApplication"/>...
4
1935
by: Paul M | last post by:
hi there, i've got a website i created, that i've put onto my test server on the web. I have a login page, that when the user comes to it, it first pops up a windows authentication dialog box, and i dont know why? i click cancel on it and the page still works as normal. How can i remove this, and why is it appearing? i am also not...
5
2854
by: Gavin Stevens | last post by:
I'm trying to figure out the ASP.NET Forms Auth I have 3 or 4 pages i want to allow anonymous access to.. Then I have 5 or 6 pages I placed in another directory in the webproject. These I want to manually authenticate users to provide acess My project has 2 web.config files... the default file <authentication mode="Forms"><forms...
4
2179
by: Chris Gatto | last post by:
Hi, I'm having what should be a minor problem but has turned into a 2 day slug fest with ASP.Net. I am simply attempting to authenticate my asp.net application users against users in an AD group set up on our domain. It seems to me I am missing something very simple and obvious, but none of the MSDN articles I have read are indicating...
6
3317
by: Ming Zhang | last post by:
Hi guys, I have couple of ASP.NET applications that only support digest windows authentication, and credentials are managed in a central AD. When users login to one app, they can easily navigate to other apps without reenter UID/PWD. Everything works except it doesn't meet our security policy for new created users. When creating a new user,...
4
4648
by: pjdouillard | last post by:
Hello all, Here is the context of my problem: We have an ASP.NET 1.1 application that has its own application pool setup and that runs under the identity of a NT Domain service account (this is for security reason when accessing databases). We use the Integrated Windows authentication to authenticate users, and we have setup the...
3
1562
by: KNC | last post by:
Hi all, I'm developing a website and deployed on webserver, it always display an authentication dialog that user must login with valid Windows user. Would anyone helps to instruct how to prohibit this dialog? Some information provides for you: 1) Dev softs: - VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition 2) Server:
2
7503
by: Frank Swarbrick | last post by:
I am trying to understand "client authentication" works. My environment is DB2/UDB LUW 8.2 on zSeries SLES9 as the database server and DB2 for VSE 7.4 as the client. We currently have DB2/LUW set up as follows: Client Userid-Password Plugin (CLNT_PW_PLUGIN) = Client Kerberos Plugin (CLNT_KRB_PLUGIN) = Group Plugin ...
4
424
by: =?Utf-8?B?R3V1czEyMw==?= | last post by:
Hi, I created a web site on a remote server. To logon the user must enter a user id and password. The site is uses Forms Authentication. The web config file looks as follows: <configuration> <system.web> <customErrors mode="Off"/>
0
7581
marktang
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...
0
7506
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...
0
7782
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, 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. ...
0
8018
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5142
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...
0
3545
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3533
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1114
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
823
bsmnconsultancy
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...

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.