473,322 Members | 1,504 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,322 software developers and data experts.

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("CDO.Message")
Set oMailConfig = Server.CreateObject ("CDO.Configuration")

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
oMailConfig.Fields.Update

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

objCDO.Subject = " Reminder"
objCDO.HTMLBody = strEmailBody
'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
'objCDO.MailFormat = 0 ' CdoMailFormatMime
' 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 3966
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**********************************@microsof t.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("CDO.Message")
Set oMailConfig = Server.CreateObject ("CDO.Configuration")

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "localhost"

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
= 25

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
= 2

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
= 60
oMailConfig.Fields.Update

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

objCDO.Subject = " Reminder"
objCDO.HTMLBody = strEmailBody
'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
'objCDO.MailFormat = 0 ' CdoMailFormatMime
' 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**********************************@microsof t.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("CDO.Message")
Set oMailConfig = Server.CreateObject ("CDO.Configuration")

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "localhost"

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
= 25

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
= 2

oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
= 60
oMailConfig.Fields.Update

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

objCDO.Subject = " Reminder"
objCDO.HTMLBody = strEmailBody
'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
'objCDO.MailFormat = 0 ' CdoMailFormatMime
' 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
> Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
> = "localhost"
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
> = 25
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
> = 2
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
> = 60
> oMailConfig.Fields.Update
>
> Set objCDO.Configuration = oMailConfig
> objCDO.From = "te**@yahoo.com"
> objCDO.To = strEmail
>
> objCDO.Subject = " Reminder"
> objCDO.HTMLBody = strEmailBody
> 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
> 'objCDO.MailFormat = 0 ' CdoMailFormatMime
> ' 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("CDO.Message")
' Set oMailConfig = Server.CreateObject ("CDO.Configuration")

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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
> Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
> = "localhost"
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
> = 25
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
> = 2
>
> oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
> = 60
> oMailConfig.Fields.Update
>
> Set objCDO.Configuration = oMailConfig
> objCDO.From = "te**@yahoo.com"
> objCDO.To = strEmail
>
> objCDO.Subject = " Reminder"
> objCDO.HTMLBody = strEmailBody
> 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
> 'objCDO.MailFormat = 0 ' CdoMailFormatMime
> ' 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**********************************@microsof t.com...
HI..

Thanks for reply

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

' Set objCDO = CreateObject("CDO.Message")
' Set oMailConfig = Server.CreateObject ("CDO.Configuration")

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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> > = "localhost"
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> > = 25
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> > = 2
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> > = 60
>> > oMailConfig.Fields.Update
>> >
>> > Set objCDO.Configuration = oMailConfig
>> > objCDO.From = "te**@yahoo.com"
>> > objCDO.To = strEmail
>> >
>> > objCDO.Subject = " Reminder"
>> > objCDO.HTMLBody = strEmailBody
>> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> > ' 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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')" 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("email")
strEmailBody ="<table width='660' height='36' border='1'>"
strEmailBody = strEmailBody &"<tr>"
strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
HI..

Thanks for reply

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

' Set objCDO = CreateObject("CDO.Message")
' Set oMailConfig = Server.CreateObject ("CDO.Configuration")

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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> > = "localhost"
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> > = 25
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> > = 2
>> >
>> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> > = 60
>> > oMailConfig.Fields.Update
>> >
>> > Set objCDO.Configuration = oMailConfig
>> > objCDO.From = "te**@yahoo.com"
>> > objCDO.To = strEmail
>> >
>> > objCDO.Subject = " Reminder"
>> > objCDO.HTMLBody = strEmailBody
>> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> > ' 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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
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("email")
strEmailBody ="<table width='660' height='36' border='1'>"
strEmailBody = strEmailBody &"<tr>"
strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
> HI..
>
> Thanks for reply
>
> i got your message but in my asp code if you discard cdo statement as
> follow
>
> ' Set objCDO = CreateObject("CDO.Message")
> ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>
> 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> > = "localhost"
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> > = 25
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> > = 2
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> > = 60
>> >> > oMailConfig.Fields.Update
>> >> >
>> >> > Set objCDO.Configuration = oMailConfig
>> >> > objCDO.From = "te**@yahoo.com"
>> >> > objCDO.To = strEmail
>> >> >
>> >> > objCDO.Subject = " Reminder"
>> >> > objCDO.HTMLBody = strEmailBody
>> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> > ' 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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
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("email")
strEmailBody ="<table width='660' height='36' border='1'>"
strEmailBody = strEmailBody &"<tr>"
strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
> HI..
>
> Thanks for reply
>
> i got your message but in my asp code if you discard cdo statement as
> follow
>
> ' Set objCDO = CreateObject("CDO.Message")
> ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>
> 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> > = "localhost"
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> > = 25
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> > = 2
>> >> >
>> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> > = 60
>> >> > oMailConfig.Fields.Update
>> >> >
>> >> > Set objCDO.Configuration = oMailConfig
>> >> > objCDO.From = "te**@yahoo.com"
>> >> > objCDO.To = strEmail
>> >> >
>> >> > objCDO.Subject = " Reminder"
>> >> > objCDO.HTMLBody = strEmailBody
>> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> > ' 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**********************************@microsof t.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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
> 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("email")
>
>
> strEmailBody ="<table width='660' height='36' border='1'>"
> strEmailBody = strEmailBody &"<tr>"
> strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
> class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> > HI..
>> >
>> > Thanks for reply
>> >
>> > i got your message but in my asp code if you discard cdo statement
>> > as
>> > follow
>> >
>> > ' Set objCDO = CreateObject("CDO.Message")
>> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >
>> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> > = "localhost"
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> > = 25
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> > = 2
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> > = 60
>> >> >> > oMailConfig.Fields.Update
>> >> >> >
>> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> > objCDO.To = strEmail
>> >> >> >
>> >> >> > objCDO.Subject = " Reminder"
>> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> > ' 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
tp
HI..

I have used Domain admin useras user name and pasword
means my user in group in domain admin groups on same server.

thank
tp
"Curt_C [MVP]" wrote:
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**********************************@microsof t.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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
> 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("email")
>
>
> strEmailBody ="<table width='660' height='36' border='1'>"
> strEmailBody = strEmailBody &"<tr>"
> strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
> class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> > HI..
>> >
>> > Thanks for reply
>> >
>> > i got your message but in my asp code if you discard cdo statement
>> > as
>> > follow
>> >
>> > ' Set objCDO = CreateObject("CDO.Message")
>> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >
>> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> > = "localhost"
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> > = 25
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> > = 2
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> > = 60
>> >> >> > oMailConfig.Fields.Update
>> >> >> >
>> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> > objCDO.To = strEmail
>> >> >> >
>> >> >> > objCDO.Subject = " Reminder"
>> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> > ' 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 #11
Is SMTP running on your server?

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

I have used Domain admin useras user name and pasword
means my user in group in domain admin groups on same server.

thank
tp
"Curt_C [MVP]" wrote:
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**********************************@microsof t.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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> > 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("email")
>> >
>> >
>> > strEmailBody ="<table width='660' height='36' border='1'>"
>> > strEmailBody = strEmailBody &"<tr>"
>> > strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
>> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> > HI..
>> >> >
>> >> > Thanks for reply
>> >> >
>> >> > i got your message but in my asp code if you discard cdo
>> >> > statement
>> >> > as
>> >> > follow
>> >> >
>> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >
>> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> > Set oMailConfig = Server.CreateObject
>> >> >> >> > ("CDO.Configuration")
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> > = "localhost"
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> >> > = 25
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> >> > = 2
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> >> > = 60
>> >> >> >> > oMailConfig.Fields.Update
>> >> >> >> >
>> >> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> >> > objCDO.To = strEmail
>> >> >> >> >
>> >> >> >> > objCDO.Subject = " Reminder"
>> >> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> >> > ' 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 #12
tp
HI

Ya it is running with exchange server 2003
because as i mention it is loaded with exchange server 2003

Thanks

"Curt_C [MVP]" wrote:
Is SMTP running on your server?

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

I have used Domain admin useras user name and pasword
means my user in group in domain admin groups on same server.

thank
tp
"Curt_C [MVP]" wrote:
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**********************************@microsof t.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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> > 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("email")
>> >
>> >
>> > strEmailBody ="<table width='660' height='36' border='1'>"
>> > strEmailBody = strEmailBody &"<tr>"
>> > strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
>> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> > HI..
>> >> >
>> >> > Thanks for reply
>> >> >
>> >> > i got your message but in my asp code if you discard cdo
>> >> > statement
>> >> > as
>> >> > follow
>> >> >
>> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >
>> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> > Set oMailConfig = Server.CreateObject
>> >> >> >> > ("CDO.Configuration")
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> > = "localhost"
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> >> > = 25
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> >> > = 2
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> >> > = 60
>> >> >> >> > oMailConfig.Fields.Update
>> >> >> >> >
>> >> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> >> > objCDO.To = strEmail
>> >> >> >> >
>> >> >> >> > objCDO.Subject = " Reminder"
>> >> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> >> > ' 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 #13
show the exact code you are using to test with

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

Ya it is running with exchange server 2003
because as i mention it is loaded with exchange server 2003

Thanks

"Curt_C [MVP]" wrote:
Is SMTP running on your server?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
> HI..
>
> I have used Domain admin useras user name and pasword
> means my user in group in domain admin groups on same server.
>
> thank
> tp
>
>
> "Curt_C [MVP]" wrote:
>
>> 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**********************************@microsof t.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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> >> > 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("email")
>> >> >
>> >> >
>> >> > strEmailBody ="<table width='660' height='36' border='1'>"
>> >> > strEmailBody = strEmailBody &"<tr>"
>> >> > strEmailBody = strEmailBody &"<td width='71'><div
>> >> > align='left'><span
>> >> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> >> > HI..
>> >> >> >
>> >> >> > Thanks for reply
>> >> >> >
>> >> >> > i got your message but in my asp code if you discard cdo
>> >> >> > statement
>> >> >> > as
>> >> >> > follow
>> >> >> >
>> >> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> >> > Set oMailConfig = Server.CreateObject
>> >> >> >> >> > ("CDO.Configuration")
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> >> > = "localhost"
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> >> >> > = 25
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> >> >> > = 2
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> >> >> > = 60
>> >> >> >> >> > oMailConfig.Fields.Update
>> >> >> >> >> >
>> >> >> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> >> >> > objCDO.To = strEmail
>> >> >> >> >> >
>> >> >> >> >> > objCDO.Subject = " Reminder"
>> >> >> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> >> >> > ' 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 #14
tp
hi..
I am using following code

<%

Dim strEmailBody, objCDO,strEmail,iConf,Flds

Set objCDO = CreateObject("CDO.Message")

Set iConf = CreateObject("CDO.Configuration")

Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 3
Flds("http://schemas.microsoft.com/cdo/configuration/user") = "my domain user"
Flds("http://schemas.microsoft.com/cdo/configuration/password") = "my
password"
Flds.Update

Set objCDO.Configuration = iConf
objCDO.From = "my email address"
objCDO.To = "some one"

objCDO.Subject = "Reminder"
objCDO.HTMLBody = "This is test email form mail server"

objCDO.Send
Set objCDO = Nothing

%>
my domain user :

"Curt_C [MVP]" wrote:
show the exact code you are using to test with

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

Ya it is running with exchange server 2003
because as i mention it is loaded with exchange server 2003

Thanks

"Curt_C [MVP]" wrote:
Is SMTP running on your server?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
> HI..
>
> I have used Domain admin useras user name and pasword
> means my user in group in domain admin groups on same server.
>
> thank
> tp
>
>
> "Curt_C [MVP]" wrote:
>
>> 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**********************************@microsof t.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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> >> > 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("email")
>> >> >
>> >> >
>> >> > strEmailBody ="<table width='660' height='36' border='1'>"
>> >> > strEmailBody = strEmailBody &"<tr>"
>> >> > strEmailBody = strEmailBody &"<td width='71'><div
>> >> > align='left'><span
>> >> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> >> > HI..
>> >> >> >
>> >> >> > Thanks for reply
>> >> >> >
>> >> >> > i got your message but in my asp code if you discard cdo
>> >> >> > statement
>> >> >> > as
>> >> >> > follow
>> >> >> >
>> >> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> >> > Set oMailConfig = Server.CreateObject
>> >> >> >> >> > ("CDO.Configuration")
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> >> > = "localhost"
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> >> >> > = 25
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> >> >> > = 2
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> >> >> > = 60
>> >> >> >> >> > oMailConfig.Fields.Update

Jul 22 '05 #15
On Mon, 6 Jun 2005 23:27:04 -0700, "tp" <tp@discussions.microsoft.com>
wrote:
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"
Start here:

Why do I get a 500 Internal Server error for all ASP errors?
http://www.aspfaq.com/show.asp?id=2109

Jeff
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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
> 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("email")
>
>
> strEmailBody ="<table width='660' height='36' border='1'>"
> strEmailBody = strEmailBody &"<tr>"
> strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
> class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> > HI..
>> >
>> > Thanks for reply
>> >
>> > i got your message but in my asp code if you discard cdo statement as
>> > follow
>> >
>> > ' Set objCDO = CreateObject("CDO.Message")
>> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >
>> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> > = "localhost"
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> > = 25
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> > = 2
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> > = 60
>> >> >> > oMailConfig.Fields.Update
>> >> >> >
>> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> > objCDO.To = strEmail
>> >> >> >
>> >> >> > objCDO.Subject = " Reminder"
>> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> > ' 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 #16
tp

HI...

Thanks I receive error atleast noe as below

Error Type:
CDO.Message.1 (0x80070005)
Access is denied.
/intra/eemailtest.asp, line 26

Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
Page:
GET /intra/eemailtest.asp
Time:
Tuesday, June 07, 2005, 6:04:17 PM

"Jeff Cochran" wrote:
On Mon, 6 Jun 2005 23:27:04 -0700, "tp" <tp@discussions.microsoft.com>
wrote:
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"


Start here:

Why do I get a 500 Internal Server error for all ASP errors?
http://www.aspfaq.com/show.asp?id=2109

Jeff
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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
> 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("email")
>
>
> strEmailBody ="<table width='660' height='36' border='1'>"
> strEmailBody = strEmailBody &"<tr>"
> strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
> class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> > HI..
>> >
>> > Thanks for reply
>> >
>> > i got your message but in my asp code if you discard cdo statement as
>> > follow
>> >
>> > ' Set objCDO = CreateObject("CDO.Message")
>> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >
>> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> > = "localhost"
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> > = 25
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> > = 2
>> >> >> >
>> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> > = 60
>> >> >> > oMailConfig.Fields.Update
>> >> >> >
>> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> > objCDO.To = strEmail
>> >> >> >
>> >> >> > objCDO.Subject = " Reminder"
>> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> > ' 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 #17
On Tue, 7 Jun 2005 18:09:01 -0700, "tp" <tp@discussions.microsoft.com>
wrote:
Thanks I receive error atleast noe as below

Error Type:
CDO.Message.1 (0x80070005)
Access is denied.
/intra/eemailtest.asp, line 26

Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
Page:
GET /intra/eemailtest.asp

And the next step...

What is line 26? And the snippet it relates to?

Jeff

Time:
Tuesday, June 07, 2005, 6:04:17 PM

"Jeff Cochran" wrote:
On Mon, 6 Jun 2005 23:27:04 -0700, "tp" <tp@discussions.microsoft.com>
wrote:
>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"


Start here:

Why do I get a 500 Internal Server error for all ASP errors?
http://www.aspfaq.com/show.asp?id=2109

Jeff
>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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> > 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("email")
>> >
>> >
>> > strEmailBody ="<table width='660' height='36' border='1'>"
>> > strEmailBody = strEmailBody &"<tr>"
>> > strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
>> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> > HI..
>> >> >
>> >> > Thanks for reply
>> >> >
>> >> > i got your message but in my asp code if you discard cdo statement as
>> >> > follow
>> >> >
>> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >
>> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> > = "localhost"
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> >> > = 25
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> >> > = 2
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> >> > = 60
>> >> >> >> > oMailConfig.Fields.Update
>> >> >> >> >
>> >> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> >> > objCDO.To = strEmail
>> >> >> >> >
>> >> >> >> > objCDO.Subject = " Reminder"
>> >> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> >> > ' 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 #18
tp
Hi

It my line

objCDO.Send

thanks

tp
"Jeff Cochran" wrote:
On Tue, 7 Jun 2005 18:09:01 -0700, "tp" <tp@discussions.microsoft.com>
wrote:
Thanks I receive error atleast noe as below

Error Type:
CDO.Message.1 (0x80070005)
Access is denied.
/intra/eemailtest.asp, line 26

Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
Page:
GET /intra/eemailtest.asp

And the next step...

What is line 26? And the snippet it relates to?

Jeff

Time:
Tuesday, June 07, 2005, 6:04:17 PM

"Jeff Cochran" wrote:
On Mon, 6 Jun 2005 23:27:04 -0700, "tp" <tp@discussions.microsoft.com>
wrote:

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

Start here:

Why do I get a 500 Internal Server error for all ASP errors?
http://www.aspfaq.com/show.asp?id=2109

Jeff

>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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> > 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("email")
>> >
>> >
>> > strEmailBody ="<table width='660' height='36' border='1'>"
>> > strEmailBody = strEmailBody &"<tr>"
>> > strEmailBody = strEmailBody &"<td width='71'><div align='left'><span
>> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> > HI..
>> >> >
>> >> > Thanks for reply
>> >> >
>> >> > i got your message but in my asp code if you discard cdo statement as
>> >> > follow
>> >> >
>> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >
>> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> > Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> > = "localhost"
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> >> > = 25
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> >> > = 2
>> >> >> >> >
>> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> >> > = 60
>> >> >> >> > oMailConfig.Fields.Update
>> >> >> >> >
>> >> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> >> > objCDO.To = strEmail
>> >> >> >> >
>> >> >> >> > objCDO.Subject = " Reminder"
>> >> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> >> > ' 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 #19
And you said you are using a Domain Administrator account? The server is on
the Domain, right?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
Hi

It my line

objCDO.Send

thanks

tp
"Jeff Cochran" wrote:
On Tue, 7 Jun 2005 18:09:01 -0700, "tp" <tp@discussions.microsoft.com>
wrote:
>Thanks I receive error atleast noe as below
>
>Error Type:
>CDO.Message.1 (0x80070005)
>Access is denied.
>/intra/eemailtest.asp, line 26
>
>Browser Type:
>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
>
>
>Page:
>GET /intra/eemailtest.asp

And the next step...

What is line 26? And the snippet it relates to?

Jeff

>Time:
>Tuesday, June 07, 2005, 6:04:17 PM
>
>"Jeff Cochran" wrote:
>
>> On Mon, 6 Jun 2005 23:27:04 -0700, "tp" <tp@discussions.microsoft.com>
>> wrote:
>>
>> >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"
>>
>> Start here:
>>
>> Why do I get a 500 Internal Server error for all ASP errors?
>> http://www.aspfaq.com/show.asp?id=2109
>>
>> Jeff
>>
>>
>>
>> >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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> >> > 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("email")
>> >> >
>> >> >
>> >> > strEmailBody ="<table width='660' height='36' border='1'>"
>> >> > strEmailBody = strEmailBody &"<tr>"
>> >> > strEmailBody = strEmailBody &"<td width='71'><div
>> >> > align='left'><span
>> >> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> >> > HI..
>> >> >> >
>> >> >> > Thanks for reply
>> >> >> >
>> >> >> > i got your message but in my asp code if you discard cdo
>> >> >> > statement as
>> >> >> > follow
>> >> >> >
>> >> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> >> > Set oMailConfig = Server.CreateObject
>> >> >> >> >> > ("CDO.Configuration")
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> >> > = "localhost"
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
>> >> >> >> >> > = 25
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
>> >> >> >> >> > = 2
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
>> >> >> >> >> > = 60
>> >> >> >> >> > oMailConfig.Fields.Update
>> >> >> >> >> >
>> >> >> >> >> > Set objCDO.Configuration = oMailConfig
>> >> >> >> >> > objCDO.From = "te**@yahoo.com"
>> >> >> >> >> > objCDO.To = strEmail
>> >> >> >> >> >
>> >> >> >> >> > objCDO.Subject = " Reminder"
>> >> >> >> >> > objCDO.HTMLBody = strEmailBody
>> >> >> >> >> > 'objCDO.BodyFormat = 0 ' CdoBodyFormatHTML
>> >> >> >> >> > 'objCDO.MailFormat = 0 ' CdoMailFormatMime
>> >> >> >> >> > ' 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 #20
tp
HI...

Ya i am using domain administartor as well as i try with different user

but same problem

Thanks

"tp" wrote:
hi..
I am using following code

<%

Dim strEmailBody, objCDO,strEmail,iConf,Flds

Set objCDO = CreateObject("CDO.Message")

Set iConf = CreateObject("CDO.Configuration")

Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 3
Flds("http://schemas.microsoft.com/cdo/configuration/user") = "my domain user"
Flds("http://schemas.microsoft.com/cdo/configuration/password") = "my
password"
Flds.Update

Set objCDO.Configuration = iConf
objCDO.From = "my email address"
objCDO.To = "some one"

objCDO.Subject = "Reminder"
objCDO.HTMLBody = "This is test email form mail server"

objCDO.Send
Set objCDO = Nothing

%>
my domain user :

"Curt_C [MVP]" wrote:
show the exact code you are using to test with

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

Ya it is running with exchange server 2003
because as i mention it is loaded with exchange server 2003

Thanks

"Curt_C [MVP]" wrote:

> Is SMTP running on your server?
>
> --
> Curt Christianson
> Site & Scripts: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "tp" <tp@discussions.microsoft.com> wrote in message
> news:21**********************************@microsof t.com...
> > HI..
> >
> > I have used Domain admin useras user name and pasword
> > means my user in group in domain admin groups on same server.
> >
> > thank
> > tp
> >
> >
> > "Curt_C [MVP]" wrote:
> >
> >> 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**********************************@microsof t.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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
> >> >> > 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("email")
> >> >> >
> >> >> >
> >> >> > strEmailBody ="<table width='660' height='36' border='1'>"
> >> >> > strEmailBody = strEmailBody &"<tr>"
> >> >> > strEmailBody = strEmailBody &"<td width='71'><div
> >> >> > align='left'><span
> >> >> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
> >> >> >> > HI..
> >> >> >> >
> >> >> >> > Thanks for reply
> >> >> >> >
> >> >> >> > i got your message but in my asp code if you discard cdo
> >> >> >> > statement
> >> >> >> > as
> >> >> >> > follow
> >> >> >> >
> >> >> >> > ' Set objCDO = CreateObject("CDO.Message")
> >> >> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
> >> >> >> >
> >> >> >> > 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**********************************@microsof t.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**********************************@microsof t.com...
> >> >> >> >> >> > HI.....
> >> >> >> >> >> >

Jul 22 '05 #21
tp
HI..

Ya i am try with domain admin user as well as normal user

Tp

"Curt_C [MVP]" wrote:
And you said you are using a Domain Administrator account? The server is on
the Domain, right?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"tp" <tp@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
Hi

It my line

objCDO.Send

thanks

tp
"Jeff Cochran" wrote:
On Tue, 7 Jun 2005 18:09:01 -0700, "tp" <tp@discussions.microsoft.com>
wrote:

>Thanks I receive error atleast noe as below
>
>Error Type:
>CDO.Message.1 (0x80070005)
>Access is denied.
>/intra/eemailtest.asp, line 26
>
>Browser Type:
>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
>
>
>Page:
>GET /intra/eemailtest.asp
And the next step...

What is line 26? And the snippet it relates to?

Jeff
>Time:
>Tuesday, June 07, 2005, 6:04:17 PM
>
>"Jeff Cochran" wrote:
>
>> On Mon, 6 Jun 2005 23:27:04 -0700, "tp" <tp@discussions.microsoft.com>
>> wrote:
>>
>> >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"
>>
>> Start here:
>>
>> Why do I get a 500 Internal Server error for all ASP errors?
>> http://www.aspfaq.com/show.asp?id=2109
>>
>> Jeff
>>
>>
>>
>> >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**********************************@microsof t.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="javascript:window.open('emailform.asp?RDN O=<%=(Recordset1__MMColParam)%>')"
>> >> > 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("email")
>> >> >
>> >> >
>> >> > strEmailBody ="<table width='660' height='36' border='1'>"
>> >> > strEmailBody = strEmailBody &"<tr>"
>> >> > strEmailBody = strEmailBody &"<td width='71'><div
>> >> > align='left'><span
>> >> > class='style8'>&nbsp;"& Recordset1("rdno") &"</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**********************************@microsof t.com...
>> >> >> > HI..
>> >> >> >
>> >> >> > Thanks for reply
>> >> >> >
>> >> >> > i got your message but in my asp code if you discard cdo
>> >> >> > statement as
>> >> >> > follow
>> >> >> >
>> >> >> > ' Set objCDO = CreateObject("CDO.Message")
>> >> >> > ' Set oMailConfig = Server.CreateObject ("CDO.Configuration")
>> >> >> >
>> >> >> > 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**********************************@microsof t.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**********************************@microsof t.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("CDO.Message")
>> >> >> >> >> > Set oMailConfig = Server.CreateObject
>> >> >> >> >> > ("CDO.Configuration")
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
>> >> >> >> >> > = "localhost"
>> >> >> >> >> >
>> >> >> >> >> > oMailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")

Jul 22 '05 #22

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

Similar topics

2
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...
9
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...
14
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...
0
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...
4
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...
0
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)...
8
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...
4
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.