473,800 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDOSYS with SBS 2003

tp
HI.....

I have made simpale web site inside that i am generating email page which
send form as email.

i have setup small business server with Exchange server 2003 and i have
hosted my website with this server.

i can not generate email using following code while same code working with
my developement XP machine installed SMTP service.
The code is

Set objCDO = CreateObject("C DO.Message")
Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "localhost"

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout") = 60
oMailConfig.Fie lds.Update

Set objCDO.Configur ation = oMailConfig
objCDO.From = "te**@yahoo.com "
objCDO.To = strEmail

objCDO.Subject = " Reminder"
objCDO.HTMLBody = strEmailBody
'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
' Send the message!
objCDO.Send
Set objCDO = Nothing
Is there any problem with tis code with exchange server
pls advide me

TP

Jul 22 '05 #1
21 4015
check the DROP folder, is it even making it in there?
check the FROM address, use one from YOUR domain.. you may have a relay
issue.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:F1******** *************** ***********@mic rosoft.com...
HI.....

I have made simpale web site inside that i am generating email page which
send form as email.

i have setup small business server with Exchange server 2003 and i have
hosted my website with this server.

i can not generate email using following code while same code working with
my developement XP machine installed SMTP service.
The code is

Set objCDO = CreateObject("C DO.Message")
Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= "localhost"

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
= 25

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
= 2

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
= 60
oMailConfig.Fie lds.Update

Set objCDO.Configur ation = oMailConfig
objCDO.From = "te**@yahoo.com "
objCDO.To = strEmail

objCDO.Subject = " Reminder"
objCDO.HTMLBody = strEmailBody
'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
' Send the message!
objCDO.Send
Set objCDO = Nothing
Is there any problem with tis code with exchange server
pls advide me

TP

Jul 22 '05 #2
tp
HI...

Thanks for reply

Y i have check drop folder it is there and i am using my domain email
addrress in from field.

It is even not generating email ..
i have check the cdosys.dll the file is there.

Is there any problem due to small business with exchange ?

Pls help me

thank
Tp

"Curt_C [MVP]" wrote:
check the DROP folder, is it even making it in there?
check the FROM address, use one from YOUR domain.. you may have a relay
issue.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:F1******** *************** ***********@mic rosoft.com...
HI.....

I have made simpale web site inside that i am generating email page which
send form as email.

i have setup small business server with Exchange server 2003 and i have
hosted my website with this server.

i can not generate email using following code while same code working with
my developement XP machine installed SMTP service.
The code is

Set objCDO = CreateObject("C DO.Message")
Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= "localhost"

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
= 25

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
= 2

oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
= 60
oMailConfig.Fie lds.Update

Set objCDO.Configur ation = oMailConfig
objCDO.From = "te**@yahoo.com "
objCDO.To = strEmail

objCDO.Subject = " Reminder"
objCDO.HTMLBody = strEmailBody
'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
' Send the message!
objCDO.Send
Set objCDO = Nothing
Is there any problem with tis code with exchange server
pls advide me

TP


Jul 22 '05 #3
If its getting to the DROP folder then its not a CDOSYS issue. Sounds like
SMTP or Exchange is the issue...so you may not be in the right spot (asp
group). Try poking around www.aspfaq.com for some pointers though.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:3A******** *************** ***********@mic rosoft.com...
HI...

Thanks for reply

Y i have check drop folder it is there and i am using my domain email
addrress in from field.

It is even not generating email ..
i have check the cdosys.dll the file is there.

Is there any problem due to small business with exchange ?

Pls help me

thank
Tp

"Curt_C [MVP]" wrote:
check the DROP folder, is it even making it in there?
check the FROM address, use one from YOUR domain.. you may have a relay
issue.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:F1******** *************** ***********@mic rosoft.com...
> HI.....
>
> I have made simpale web site inside that i am generating email page
> which
> send form as email.
>
> i have setup small business server with Exchange server 2003 and i have
> hosted my website with this server.
>
> i can not generate email using following code while same code working
> with
> my developement XP machine installed SMTP service.
> The code is
>
> Set objCDO = CreateObject("C DO.Message")
> Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
> = "localhost"
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
> = 25
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
> = 2
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
> = 60
> oMailConfig.Fie lds.Update
>
> Set objCDO.Configur ation = oMailConfig
> objCDO.From = "te**@yahoo.com "
> objCDO.To = strEmail
>
> objCDO.Subject = " Reminder"
> objCDO.HTMLBody = strEmailBody
> 'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
> 'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
> ' Send the message!
> objCDO.Send
> Set objCDO = Nothing
>
>
> Is there any problem with tis code with exchange server
> pls advide me
>
> TP
>


Jul 22 '05 #4
tp
HI..

Thanks for reply

i got your message but in my asp code if you discard cdo statement as follow

' Set objCDO = CreateObject("C DO.Message")
' Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")

then it will show my page means it might be problem with cdosys as i was think

can you me some idea

Thanks

Tp

"Curt_C [MVP]" wrote:
If its getting to the DROP folder then its not a CDOSYS issue. Sounds like
SMTP or Exchange is the issue...so you may not be in the right spot (asp
group). Try poking around www.aspfaq.com for some pointers though.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:3A******** *************** ***********@mic rosoft.com...
HI...

Thanks for reply

Y i have check drop folder it is there and i am using my domain email
addrress in from field.

It is even not generating email ..
i have check the cdosys.dll the file is there.

Is there any problem due to small business with exchange ?

Pls help me

thank
Tp

"Curt_C [MVP]" wrote:
check the DROP folder, is it even making it in there?
check the FROM address, use one from YOUR domain.. you may have a relay
issue.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:F1******** *************** ***********@mic rosoft.com...
> HI.....
>
> I have made simpale web site inside that i am generating email page
> which
> send form as email.
>
> i have setup small business server with Exchange server 2003 and i have
> hosted my website with this server.
>
> i can not generate email using following code while same code working
> with
> my developement XP machine installed SMTP service.
> The code is
>
> Set objCDO = CreateObject("C DO.Message")
> Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
> = "localhost"
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
> = 25
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
> = 2
>
> oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
> = 60
> oMailConfig.Fie lds.Update
>
> Set objCDO.Configur ation = oMailConfig
> objCDO.From = "te**@yahoo.com "
> objCDO.To = strEmail
>
> objCDO.Subject = " Reminder"
> objCDO.HTMLBody = strEmailBody
> 'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
> 'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
> ' Send the message!
> objCDO.Send
> Set objCDO = Nothing
>
>
> Is there any problem with tis code with exchange server
> pls advide me
>
> TP
>


Jul 22 '05 #5
huh? What does the page showing have to do with anything?

If the email is put into the DROP folder then, as far as programming goes,
its DONE.
From there SMTP takes over

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:CF******** *************** ***********@mic rosoft.com...
HI..

Thanks for reply

i got your message but in my asp code if you discard cdo statement as
follow

' Set objCDO = CreateObject("C DO.Message")
' Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")

then it will show my page means it might be problem with cdosys as i was
think

can you me some idea

Thanks

Tp

"Curt_C [MVP]" wrote:
If its getting to the DROP folder then its not a CDOSYS issue. Sounds
like
SMTP or Exchange is the issue...so you may not be in the right spot (asp
group). Try poking around www.aspfaq.com for some pointers though.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:3A******** *************** ***********@mic rosoft.com...
> HI...
>
> Thanks for reply
>
> Y i have check drop folder it is there and i am using my domain email
> addrress in from field.
>
> It is even not generating email ..
> i have check the cdosys.dll the file is there.
>
> Is there any problem due to small business with exchange ?
>
> Pls help me
>
> thank
> Tp
>
>
>
> "Curt_C [MVP]" wrote:
>
>> check the DROP folder, is it even making it in there?
>> check the FROM address, use one from YOUR domain.. you may have a
>> relay
>> issue.
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
>> "tp" <tp@discussions .microsoft.com> wrote in message
>> news:F1******** *************** ***********@mic rosoft.com...
>> > HI.....
>> >
>> > I have made simpale web site inside that i am generating email page
>> > which
>> > send form as email.
>> >
>> > i have setup small business server with Exchange server 2003 and i
>> > have
>> > hosted my website with this server.
>> >
>> > i can not generate email using following code while same code
>> > working
>> > with
>> > my developement XP machine installed SMTP service.
>> > The code is
>> >
>> > Set objCDO = CreateObject("C DO.Message")
>> > Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
>> > = "localhost"
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
>> > = 25
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
>> > = 2
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
>> > = 60
>> > oMailConfig.Fie lds.Update
>> >
>> > Set objCDO.Configur ation = oMailConfig
>> > objCDO.From = "te**@yahoo.com "
>> > objCDO.To = strEmail
>> >
>> > objCDO.Subject = " Reminder"
>> > objCDO.HTMLBody = strEmailBody
>> > 'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
>> > 'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
>> > ' Send the message!
>> > objCDO.Send
>> > Set objCDO = Nothing
>> >
>> >
>> > Is there any problem with tis code with exchange server
>> > pls advide me
>> >
>> > TP
>> >
>>
>>
>>


Jul 22 '05 #6
tp
HI...Thanks for reple me
Let me explain in briff

i have one on that for there is email button and i have write onclick event
that is

<input type="button"
onClick="javasc ript:window.ope n('emailform.as p?RDNO=<%=(Reco rdset1__MMColPa ram)%>')" value="Email">

so in emailform.asp

i am retriving records from my table using querystring , upto this it works
fine
then display valuve in thable

which i heve to assign to one variable like this

<%

Dim strEmailBody, objCDO,strEmail
strEmail = Recordset1("ema il")
strEmailBody ="<table width='660' height='36' border='1'>"
strEmailBody = strEmailBody &"<tr>"
strEmailBody = strEmailBody &"<td width='71'><div align='left'><s pan
class='style8'> &nbsp;"& Recordset1("rdn o") &"</td>"
strEmailBody = strEmailBody &"</tr>"
strEmailBody = strEmailBody &" </table>"

objCDO.From = "my domain email address"
objCDO.To = strEmail

objCDO.Subject = "Reminder"
objCDO.HTMLBody = strEmailBody

objCDO.Send
Set objCDO = Nothing
%>
The above code works fine on my developement machine but on my server it
gives me error page canot be displayed.
If i take out CDO code as i mention earlier

then it show me table with respected values from my table.

the mail it seld not generating nothing in drop folder.

if you have any idea pls let me know

Thanks

TP

and then i have made table

"Curt_C [MVP]" wrote:
huh? What does the page showing have to do with anything?

If the email is put into the DROP folder then, as far as programming goes,
its DONE.
From there SMTP takes over

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:CF******** *************** ***********@mic rosoft.com...
HI..

Thanks for reply

i got your message but in my asp code if you discard cdo statement as
follow

' Set objCDO = CreateObject("C DO.Message")
' Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")

then it will show my page means it might be problem with cdosys as i was
think

can you me some idea

Thanks

Tp

"Curt_C [MVP]" wrote:
If its getting to the DROP folder then its not a CDOSYS issue. Sounds
like
SMTP or Exchange is the issue...so you may not be in the right spot (asp
group). Try poking around www.aspfaq.com for some pointers though.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:3A******** *************** ***********@mic rosoft.com...
> HI...
>
> Thanks for reply
>
> Y i have check drop folder it is there and i am using my domain email
> addrress in from field.
>
> It is even not generating email ..
> i have check the cdosys.dll the file is there.
>
> Is there any problem due to small business with exchange ?
>
> Pls help me
>
> thank
> Tp
>
>
>
> "Curt_C [MVP]" wrote:
>
>> check the DROP folder, is it even making it in there?
>> check the FROM address, use one from YOUR domain.. you may have a
>> relay
>> issue.
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
>> "tp" <tp@discussions .microsoft.com> wrote in message
>> news:F1******** *************** ***********@mic rosoft.com...
>> > HI.....
>> >
>> > I have made simpale web site inside that i am generating email page
>> > which
>> > send form as email.
>> >
>> > i have setup small business server with Exchange server 2003 and i
>> > have
>> > hosted my website with this server.
>> >
>> > i can not generate email using following code while same code
>> > working
>> > with
>> > my developement XP machine installed SMTP service.
>> > The code is
>> >
>> > Set objCDO = CreateObject("C DO.Message")
>> > Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
>> > = "localhost"
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
>> > = 25
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
>> > = 2
>> >
>> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
>> > = 60
>> > oMailConfig.Fie lds.Update
>> >
>> > Set objCDO.Configur ation = oMailConfig
>> > objCDO.From = "te**@yahoo.com "
>> > objCDO.To = strEmail
>> >
>> > objCDO.Subject = " Reminder"
>> > objCDO.HTMLBody = strEmailBody
>> > 'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
>> > 'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
>> > ' Send the message!
>> > objCDO.Send
>> > Set objCDO = Nothing
>> >
>> >
>> > Is there any problem with tis code with exchange server
>> > pls advide me
>> >
>> > TP
>> >
>>
>>
>>


Jul 22 '05 #7
Argh... you never said you got a "page can not be found" error.. .
ok..... lets start over.

First off, is that the actual error message? Turn off friendly error
messages first, to ensure.
Second, try a sample page with just the CDO stuff, to test that out without
all the other code, to find out whats going on.
Third, whats the server? Is it a Win2k, Win2k3, ?
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
HI...Thanks for reple me
Let me explain in briff

i have one on that for there is email button and i have write onclick
event
that is

<input type="button"
onClick="javasc ript:window.ope n('emailform.as p?RDNO=<%=(Reco rdset1__MMColPa ram)%>')"
value="Email">

so in emailform.asp

i am retriving records from my table using querystring , upto this it
works
fine
then display valuve in thable

which i heve to assign to one variable like this

<%

Dim strEmailBody, objCDO,strEmail
strEmail = Recordset1("ema il")
strEmailBody ="<table width='660' height='36' border='1'>"
strEmailBody = strEmailBody &"<tr>"
strEmailBody = strEmailBody &"<td width='71'><div align='left'><s pan
class='style8'> &nbsp;"& Recordset1("rdn o") &"</td>"
strEmailBody = strEmailBody &"</tr>"
strEmailBody = strEmailBody &" </table>"

objCDO.From = "my domain email address"
objCDO.To = strEmail

objCDO.Subject = "Reminder"
objCDO.HTMLBody = strEmailBody

objCDO.Send
Set objCDO = Nothing
%>
The above code works fine on my developement machine but on my server it
gives me error page canot be displayed.
If i take out CDO code as i mention earlier

then it show me table with respected values from my table.

the mail it seld not generating nothing in drop folder.

if you have any idea pls let me know

Thanks

TP

and then i have made table

"Curt_C [MVP]" wrote:
huh? What does the page showing have to do with anything?

If the email is put into the DROP folder then, as far as programming
goes,
its DONE.
From there SMTP takes over

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:CF******** *************** ***********@mic rosoft.com...
> HI..
>
> Thanks for reply
>
> i got your message but in my asp code if you discard cdo statement as
> follow
>
> ' Set objCDO = CreateObject("C DO.Message")
> ' Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>
> then it will show my page means it might be problem with cdosys as i
> was
> think
>
> can you me some idea
>
> Thanks
>
> Tp
>
>
>
> "Curt_C [MVP]" wrote:
>
>> If its getting to the DROP folder then its not a CDOSYS issue. Sounds
>> like
>> SMTP or Exchange is the issue...so you may not be in the right spot
>> (asp
>> group). Try poking around www.aspfaq.com for some pointers though.
>>
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
>> "tp" <tp@discussions .microsoft.com> wrote in message
>> news:3A******** *************** ***********@mic rosoft.com...
>> > HI...
>> >
>> > Thanks for reply
>> >
>> > Y i have check drop folder it is there and i am using my domain
>> > email
>> > addrress in from field.
>> >
>> > It is even not generating email ..
>> > i have check the cdosys.dll the file is there.
>> >
>> > Is there any problem due to small business with exchange ?
>> >
>> > Pls help me
>> >
>> > thank
>> > Tp
>> >
>> >
>> >
>> > "Curt_C [MVP]" wrote:
>> >
>> >> check the DROP folder, is it even making it in there?
>> >> check the FROM address, use one from YOUR domain.. you may have a
>> >> relay
>> >> issue.
>> >>
>> >> --
>> >> Curt Christianson
>> >> Site & Scripts: http://www.Darkfalz.com
>> >> Blog: http://blog.Darkfalz.com
>> >>
>> >>
>> >> "tp" <tp@discussions .microsoft.com> wrote in message
>> >> news:F1******** *************** ***********@mic rosoft.com...
>> >> > HI.....
>> >> >
>> >> > I have made simpale web site inside that i am generating email
>> >> > page
>> >> > which
>> >> > send form as email.
>> >> >
>> >> > i have setup small business server with Exchange server 2003 and
>> >> > i
>> >> > have
>> >> > hosted my website with this server.
>> >> >
>> >> > i can not generate email using following code while same code
>> >> > working
>> >> > with
>> >> > my developement XP machine installed SMTP service.
>> >> > The code is
>> >> >
>> >> > Set objCDO = CreateObject("C DO.Message")
>> >> > Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
>> >> > = "localhost"
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
>> >> > = 25
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
>> >> > = 2
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
>> >> > = 60
>> >> > oMailConfig.Fie lds.Update
>> >> >
>> >> > Set objCDO.Configur ation = oMailConfig
>> >> > objCDO.From = "te**@yahoo.com "
>> >> > objCDO.To = strEmail
>> >> >
>> >> > objCDO.Subject = " Reminder"
>> >> > objCDO.HTMLBody = strEmailBody
>> >> > 'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
>> >> > 'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
>> >> > ' Send the message!
>> >> > objCDO.Send
>> >> > Set objCDO = Nothing
>> >> >
>> >> >
>> >> > Is there any problem with tis code with exchange server
>> >> > pls advide me
>> >> >
>> >> > TP
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Jul 22 '05 #8
tp
HI...

atlast we are proble
i have small busness server 2003 with exchange server 2003

I have write simple CDO email but i am receiving same error

"page canot found'

Error 500
"Internal server error"

Thanks
TP

"Curt_C [MVP]" wrote:
Argh... you never said you got a "page can not be found" error.. .
ok..... lets start over.

First off, is that the actual error message? Turn off friendly error
messages first, to ensure.
Second, try a sample page with just the CDO stuff, to test that out without
all the other code, to find out whats going on.
Third, whats the server? Is it a Win2k, Win2k3, ?
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
HI...Thanks for reple me
Let me explain in briff

i have one on that for there is email button and i have write onclick
event
that is

<input type="button"
onClick="javasc ript:window.ope n('emailform.as p?RDNO=<%=(Reco rdset1__MMColPa ram)%>')"
value="Email">

so in emailform.asp

i am retriving records from my table using querystring , upto this it
works
fine
then display valuve in thable

which i heve to assign to one variable like this

<%

Dim strEmailBody, objCDO,strEmail
strEmail = Recordset1("ema il")
strEmailBody ="<table width='660' height='36' border='1'>"
strEmailBody = strEmailBody &"<tr>"
strEmailBody = strEmailBody &"<td width='71'><div align='left'><s pan
class='style8'> &nbsp;"& Recordset1("rdn o") &"</td>"
strEmailBody = strEmailBody &"</tr>"
strEmailBody = strEmailBody &" </table>"

objCDO.From = "my domain email address"
objCDO.To = strEmail

objCDO.Subject = "Reminder"
objCDO.HTMLBody = strEmailBody

objCDO.Send
Set objCDO = Nothing
%>
The above code works fine on my developement machine but on my server it
gives me error page canot be displayed.
If i take out CDO code as i mention earlier

then it show me table with respected values from my table.

the mail it seld not generating nothing in drop folder.

if you have any idea pls let me know

Thanks

TP

and then i have made table

"Curt_C [MVP]" wrote:
huh? What does the page showing have to do with anything?

If the email is put into the DROP folder then, as far as programming
goes,
its DONE.
From there SMTP takes over

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:CF******** *************** ***********@mic rosoft.com...
> HI..
>
> Thanks for reply
>
> i got your message but in my asp code if you discard cdo statement as
> follow
>
> ' Set objCDO = CreateObject("C DO.Message")
> ' Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>
> then it will show my page means it might be problem with cdosys as i
> was
> think
>
> can you me some idea
>
> Thanks
>
> Tp
>
>
>
> "Curt_C [MVP]" wrote:
>
>> If its getting to the DROP folder then its not a CDOSYS issue. Sounds
>> like
>> SMTP or Exchange is the issue...so you may not be in the right spot
>> (asp
>> group). Try poking around www.aspfaq.com for some pointers though.
>>
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
>> "tp" <tp@discussions .microsoft.com> wrote in message
>> news:3A******** *************** ***********@mic rosoft.com...
>> > HI...
>> >
>> > Thanks for reply
>> >
>> > Y i have check drop folder it is there and i am using my domain
>> > email
>> > addrress in from field.
>> >
>> > It is even not generating email ..
>> > i have check the cdosys.dll the file is there.
>> >
>> > Is there any problem due to small business with exchange ?
>> >
>> > Pls help me
>> >
>> > thank
>> > Tp
>> >
>> >
>> >
>> > "Curt_C [MVP]" wrote:
>> >
>> >> check the DROP folder, is it even making it in there?
>> >> check the FROM address, use one from YOUR domain.. you may have a
>> >> relay
>> >> issue.
>> >>
>> >> --
>> >> Curt Christianson
>> >> Site & Scripts: http://www.Darkfalz.com
>> >> Blog: http://blog.Darkfalz.com
>> >>
>> >>
>> >> "tp" <tp@discussions .microsoft.com> wrote in message
>> >> news:F1******** *************** ***********@mic rosoft.com...
>> >> > HI.....
>> >> >
>> >> > I have made simpale web site inside that i am generating email
>> >> > page
>> >> > which
>> >> > send form as email.
>> >> >
>> >> > i have setup small business server with Exchange server 2003 and
>> >> > i
>> >> > have
>> >> > hosted my website with this server.
>> >> >
>> >> > i can not generate email using following code while same code
>> >> > working
>> >> > with
>> >> > my developement XP machine installed SMTP service.
>> >> > The code is
>> >> >
>> >> > Set objCDO = CreateObject("C DO.Message")
>> >> > Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
>> >> > = "localhost"
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
>> >> > = 25
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
>> >> > = 2
>> >> >
>> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
>> >> > = 60
>> >> > oMailConfig.Fie lds.Update
>> >> >
>> >> > Set objCDO.Configur ation = oMailConfig
>> >> > objCDO.From = "te**@yahoo.com "
>> >> > objCDO.To = strEmail
>> >> >
>> >> > objCDO.Subject = " Reminder"
>> >> > objCDO.HTMLBody = strEmailBody
>> >> > 'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
>> >> > 'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
>> >> > ' Send the message!
>> >> > objCDO.Send
>> >> > Set objCDO = Nothing
>> >> >
>> >> >
>> >> > Is there any problem with tis code with exchange server
>> >> > pls advide me
>> >> >
>> >> > TP
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Jul 22 '05 #9
What user are you using for the site on the server?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:18******** *************** ***********@mic rosoft.com...
HI...

atlast we are proble
i have small busness server 2003 with exchange server 2003

I have write simple CDO email but i am receiving same error

"page canot found'

Error 500
"Internal server error"

Thanks
TP

"Curt_C [MVP]" wrote:
Argh... you never said you got a "page can not be found" error.. .
ok..... lets start over.

First off, is that the actual error message? Turn off friendly error
messages first, to ensure.
Second, try a sample page with just the CDO stuff, to test that out
without
all the other code, to find out whats going on.
Third, whats the server? Is it a Win2k, Win2k3, ?
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions .microsoft.com> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
> HI...Thanks for reple me
>
>
> Let me explain in briff
>
> i have one on that for there is email button and i have write onclick
> event
> that is
>
> <input type="button"
> onClick="javasc ript:window.ope n('emailform.as p?RDNO=<%=(Reco rdset1__MMColPa ram)%>')"
> value="Email">
>
> so in emailform.asp
>
> i am retriving records from my table using querystring , upto this it
> works
> fine
> then display valuve in thable
>
> which i heve to assign to one variable like this
>
> <%
>
> Dim strEmailBody, objCDO,strEmail
> strEmail = Recordset1("ema il")
>
>
> strEmailBody ="<table width='660' height='36' border='1'>"
> strEmailBody = strEmailBody &"<tr>"
> strEmailBody = strEmailBody &"<td width='71'><div align='left'><s pan
> class='style8'> &nbsp;"& Recordset1("rdn o") &"</td>"
> strEmailBody = strEmailBody &"</tr>"
> strEmailBody = strEmailBody &" </table>"
>
> objCDO.From = "my domain email address"
> objCDO.To = strEmail
>
> objCDO.Subject = "Reminder"
> objCDO.HTMLBody = strEmailBody
>
> objCDO.Send
> Set objCDO = Nothing
> %>
>
>
> The above code works fine on my developement machine but on my server
> it
> gives me error page canot be displayed.
> If i take out CDO code as i mention earlier
>
> then it show me table with respected values from my table.
>
> the mail it seld not generating nothing in drop folder.
>
> if you have any idea pls let me know
>
> Thanks
>
> TP
>
>
>
> and then i have made table
>
> "Curt_C [MVP]" wrote:
>
>> huh? What does the page showing have to do with anything?
>>
>> If the email is put into the DROP folder then, as far as programming
>> goes,
>> its DONE.
>> From there SMTP takes over
>>
>> --
>> Curt Christianson
>> Site & Scripts: http://www.Darkfalz.com
>> Blog: http://blog.Darkfalz.com
>>
>>
>> "tp" <tp@discussions .microsoft.com> wrote in message
>> news:CF******** *************** ***********@mic rosoft.com...
>> > HI..
>> >
>> > Thanks for reply
>> >
>> > i got your message but in my asp code if you discard cdo statement
>> > as
>> > follow
>> >
>> > ' Set objCDO = CreateObject("C DO.Message")
>> > ' Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>> >
>> > then it will show my page means it might be problem with cdosys as i
>> > was
>> > think
>> >
>> > can you me some idea
>> >
>> > Thanks
>> >
>> > Tp
>> >
>> >
>> >
>> > "Curt_C [MVP]" wrote:
>> >
>> >> If its getting to the DROP folder then its not a CDOSYS issue.
>> >> Sounds
>> >> like
>> >> SMTP or Exchange is the issue...so you may not be in the right spot
>> >> (asp
>> >> group). Try poking around www.aspfaq.com for some pointers though.
>> >>
>> >>
>> >> --
>> >> Curt Christianson
>> >> Site & Scripts: http://www.Darkfalz.com
>> >> Blog: http://blog.Darkfalz.com
>> >>
>> >>
>> >> "tp" <tp@discussions .microsoft.com> wrote in message
>> >> news:3A******** *************** ***********@mic rosoft.com...
>> >> > HI...
>> >> >
>> >> > Thanks for reply
>> >> >
>> >> > Y i have check drop folder it is there and i am using my domain
>> >> > email
>> >> > addrress in from field.
>> >> >
>> >> > It is even not generating email ..
>> >> > i have check the cdosys.dll the file is there.
>> >> >
>> >> > Is there any problem due to small business with exchange ?
>> >> >
>> >> > Pls help me
>> >> >
>> >> > thank
>> >> > Tp
>> >> >
>> >> >
>> >> >
>> >> > "Curt_C [MVP]" wrote:
>> >> >
>> >> >> check the DROP folder, is it even making it in there?
>> >> >> check the FROM address, use one from YOUR domain.. you may have
>> >> >> a
>> >> >> relay
>> >> >> issue.
>> >> >>
>> >> >> --
>> >> >> Curt Christianson
>> >> >> Site & Scripts: http://www.Darkfalz.com
>> >> >> Blog: http://blog.Darkfalz.com
>> >> >>
>> >> >>
>> >> >> "tp" <tp@discussions .microsoft.com> wrote in message
>> >> >> news:F1******** *************** ***********@mic rosoft.com...
>> >> >> > HI.....
>> >> >> >
>> >> >> > I have made simpale web site inside that i am generating email
>> >> >> > page
>> >> >> > which
>> >> >> > send form as email.
>> >> >> >
>> >> >> > i have setup small business server with Exchange server 2003
>> >> >> > and
>> >> >> > i
>> >> >> > have
>> >> >> > hosted my website with this server.
>> >> >> >
>> >> >> > i can not generate email using following code while same code
>> >> >> > working
>> >> >> > with
>> >> >> > my developement XP machine installed SMTP service.
>> >> >> > The code is
>> >> >> >
>> >> >> > Set objCDO = CreateObject("C DO.Message")
>> >> >> > Set oMailConfig = Server.CreateOb ject ("CDO.Configura tion")
>> >> >> >
>> >> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver")
>> >> >> > = "localhost"
>> >> >> >
>> >> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
>> >> >> > = 25
>> >> >> >
>> >> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing")
>> >> >> > = 2
>> >> >> >
>> >> >> > oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
>> >> >> > = 60
>> >> >> > oMailConfig.Fie lds.Update
>> >> >> >
>> >> >> > Set objCDO.Configur ation = oMailConfig
>> >> >> > objCDO.From = "te**@yahoo.com "
>> >> >> > objCDO.To = strEmail
>> >> >> >
>> >> >> > objCDO.Subject = " Reminder"
>> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> > 'objCDO.BodyFor mat = 0 ' CdoBodyFormatHT ML
>> >> >> > 'objCDO.MailFor mat = 0 ' CdoMailFormatMi me
>> >> >> > ' Send the message!
>> >> >> > objCDO.Send
>> >> >> > Set objCDO = Nothing
>> >> >> >
>> >> >> >
>> >> >> > Is there any problem with tis code with exchange server
>> >> >> > pls advide me
>> >> >> >
>> >> >> > TP
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>


Jul 22 '05 #10

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

Similar topics

2
2450
by: dmalhotr2001 | last post by:
Hi, I'm using windows 2003 with asp. However I'm having problems sending email using the cdosys object. My code is below and I don't believe its the code but on the send command. <% dim sch
9
2704
by: tshad | last post by:
This is a problem that we saw before on our asp site, but don't know how to fix it. We are seeing it on our .net site also. We have our email sending from our Windows 2003 server with exchange fine, unless we send to an alias. It never gets there. I can send directly and it works fine and the CDOSYS works fine to a non-alias account.
14
13433
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on another PC that the database was installed on, the user is getting the message, "The project contains a missing or broken reference to the file 'CDO.DLL' version 1.21." However, I don't have a reference to cdo.dll; my reference is to cdosys.dll....
0
1420
by: alina | last post by:
I'm using CDOSYS to send an e-mail with both text and html included in the e-mail I'm using the following code to send the e-mail to an SMTP server.If I open the e-mail with Outlook Express 6 is working fine.If the text only option is enabled I get only the text part of the e-mail.If I open this e-mail with Outlook 2003 I get the text rendered from the html which is looking very ugly.I've tried to use another code as well, using bodyparts and I...
4
12240
by: rschaeferhig | last post by:
I have an ASP page that uses CDOSYS to send a simple HTML format email with a PDF attachment. When I open the PDF attached to the email it shows up as a blank page. I log into the web server console and open the same PDF in the source directory and it opens fine. I run a binary comparison of the source and attached files and there's a difference: one byte, x'2E' is missing at offset x'0231'. If I save the attached file and use a hex editor...
0
3262
by: Atenza | last post by:
Hi all, I develop an VB6 program to send email by using CDOSYS.DLL. It works fine as follow: Dim iMsg As New CDO.Message Dim iDsrc As CDO.IDataSource Set iDsrc = iMsg ' (QueryInterface) Dim iConf As New CDO.Configuration Dim Flds As ADODB.Fields
8
7551
by: Akbur | last post by:
Dear all, I'm having major issues sending an email from my ASP.NET app. I'm getting a "Could not create 'CDO.Message' object". When I did a search for cdosys.dll in \win_location\system32, I could not find it. So I copied it from another Windows 2003 server, where it did exist. Another dependant file was missing too (inetcomm.dll).
4
7217
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am working on a program that gets mail messages from the default SMTP server with iis 6.0 on windows server 2003. I am using the cdosys.dll in the system32 directory. The reference Name is "Microsoft CDO for Windows 2000 Library". On the machine there is a CDO.dll in the Program Files\Common Files\System\MSMAPI\1033 directory. The question is which one of these is the current dll. I also wonder if there is better way to access...
0
10505
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10276
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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,...
0
10035
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 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...
0
9090
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
isladogs
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...
0
5471
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
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
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.