469,925 Members | 1,531 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,925 developers. It's quick & easy.

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 3793
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by dmalhotr2001 | last post: by
9 posts views Thread by tshad | last post: by
14 posts views Thread by Neil Ginsberg | last post: by
8 posts views Thread by Akbur | last post: by
4 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.