|
 |
asp_cdo thread: Problem with Attachments
Message #1 by "Anand" <Anand@S...> on Thu, 6 Jun 2002 17:33:32 +0800
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01C20D80.47C89D60
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Dear CDONTS Fundu's,
This problem seems to be very peculiar. I am using CDONTS in my ASP
pages to send mails. I have set the SMARTHOST in my IIS SMTP
server(Win2K Server) so that it will relay all the mails my corporate
SMTP server(WinNT 4.0 Server) in local intranet.
The problem is this,
When I send an email without attachments it works fine. For example,
Dim objCDONTSMail
Set objCDONTSMail = Server.CreateObject("CDONTS.NewMail")
objCDONTSMail.From = " <mailto:myself@m...> myself@m..."
objCDONTSMail.To = "someone@x...>"
objCDONTSMail.Subject = "Test Mail without Attachments"
objCDONTSMail.Importance=2
objCDONTSMail.Send
Set objCDONTSMail = Nothing
I add an attachment in the same mail, For Example,
Dim objCDONTSMail
Set objCDONTSMail = Server.CreateObject("CDONTS.NewMail")
objCDONTSMail.From = " <mailto:myself@m...> myself@m..."
objCDONTSMail.To = "someone@x...>"
objCDONTSMail.Subject = "Test Mail with Attachments"
objCDONTSMail.Importance=2
objCDONTSMail.AttachFile "C:\Attachments\947418838.doc", "TestDocument",
0
objCDONTSMail.Send
Set objCDONTSMail = Nothing
Can someone help me?
Best Regards
==============================================================
</Anand.R>
System Analyst, HCL Perot Systems
Sapura Consortium - EG Generic Office Environment
C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya, Selangor.
Tel(O) : 03-83138190 Fax: 03-83138139 Mobile: 019-3598779
==============================================================
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
Message #2 by "Anand" <Anand@S...> on Thu, 6 Jun 2002 17:36:03 +0800
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0014_01C20D80.A17F88A0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Dear CDONTS Fundu's,
This problem seems to be very peculiar. I am using CDONTS in my ASP
pages to send mails. I have set the SMARTHOST in my IIS SMTP
server(Win2K Server) so that it will relay all the mails my corporate
SMTP server(WinNT 4.0 Server) in local intranet.
The problem is this,
When I send an email without attachments it works fine. For example,
Dim objCDONTSMail
Set objCDONTSMail = Server.CreateObject("CDONTS.NewMail")
objCDONTSMail.From = " <mailto:myself@m...> myself@m..."
objCDONTSMail.To = "someone@x...>"
objCDONTSMail.Subject = "Test Mail without Attachments"
objCDONTSMail.Importance=2
objCDONTSMail.Send
Set objCDONTSMail = Nothing
(Result: Mail is Sent)
I add an attachment in the same mail, For Example,
Dim objCDONTSMail
Set objCDONTSMail = Server.CreateObject("CDONTS.NewMail")
objCDONTSMail.From = " <mailto:myself@m...> myself@m..."
objCDONTSMail.To = "someone@x...>"
objCDONTSMail.Subject = "Test Mail with Attachments"
objCDONTSMail.Importance=2
objCDONTSMail.AttachFile "C:\Attachments\947418838.doc", "TestDocument",
0
objCDONTSMail.Send
Set objCDONTSMail = Nothing
(Result: Mail is not Sent)
Can someone help me?
Best Regards
==============================================================
</Anand.R>
System Analyst, HCL Perot Systems
Sapura Consortium - EG Generic Office Environment
C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya, Selangor.
Tel(O) : 03-83138190 Fax: 03-83138139 Mobile: 019-3598779
==============================================================
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
Message #3 by "Siegfried Weber" <sweber@c...> on Fri, 7 Jun 2002 00:19:05 +0200
|
|
CDONTS is a server-side component and cannot attach files which are
located on a client computer. To accomplish that you need to upload the
file to the server running your CDONTS code first.
For more info on uploading files you can check for example
http://www.aspfaq.com.
<Siegfried />
> -----Original Message-----
> From: Anand [mailto:Anand@S...]
> Sent: Thursday, June 06, 2002 11:36 AM
> To: ASP CDO
> Subject: [asp_cdo] Problem with Attachments
>
>
> Dear CDONTS Fundu's,
>
> This problem seems to be very peculiar. I am using CDONTS in my ASP
pages
> to send mails. I have set the SMARTHOST in my IIS SMTP server(Win2K
> Server) so that it will relay all the mails my corporate SMTP
server(WinNT
> 4.0 Server) in local intranet.
>
> The problem is this,
>
> When I send an email without attachments it works fine. For example,
>
> Dim objCDONTSMail
> Set objCDONTSMail =3D Server.CreateObject("CDONTS.NewMail")
> objCDONTSMail.From =3D "myself@m...
> <mailto:myself@m...> "
> objCDONTSMail.To =3D "someone@x...>"
> objCDONTSMail.Subject =3D "Test Mail without Attachments"
> objCDONTSMail.Importance=3D2
> objCDONTSMail.Send
> Set objCDONTSMail =3D Nothing
>
> (Result: Mail is Sent)
>
> I add an attachment in the same mail, For Example,
>
> Dim objCDONTSMail
> Set objCDONTSMail =3D Server.CreateObject("CDONTS.NewMail")
> objCDONTSMail.From =3D "myself@m...
> <mailto:myself@m...> "
> objCDONTSMail.To =3D "someone@x...>"
> objCDONTSMail.Subject =3D "Test Mail with Attachments"
> objCDONTSMail.Importance=3D2
> objCDONTSMail.AttachFile "C:\Attachments\947418838.doc",
> "TestDocument", 0
> objCDONTSMail.Send
> Set objCDONTSMail =3D Nothing
>
> (Result: Mail is not Sent)
>
> Can someone help me?
>
> Best Regards
>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> </Anand.R>
> System Analyst, HCL Perot Systems
> Sapura Consortium - EG Generic Office Environment
> C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya, Selangor.
> Tel(O) : 03-83138190 Fax: 03-83138139 Mobile: 019-3598779
>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> This e-mail may contain confidential and/or privileged information. If
you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in
this
> e-mail is strictly forbidden.
> --- Change your mail options at http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
Message #4 by Manikandan Raghavan <mrmani7@y...> on Thu, 6 Jun 2002 17:39:06 -0700 (PDT)
|
|
Hi Anand,
When you are attaching a file, that file should be in
your virtual directory.
i.e. you should not attach the file like
C:\Attachments\947418838.doc, for eg.
it should be http://yourservername/virtual
directoryname/attachment/947418838.doc
So you have to store the file in to your virtual
directory and try to attach it.
regards.
mani.
--- Anand <Anand@S...> wrote:
>
> Dear CDONTS Fundu's,
>
> This problem seems to be very peculiar. I am using
> CDONTS in my ASP
> pages to send mails. I have set the SMARTHOST in my
> IIS SMTP
> server(Win2K Server) so that it will relay all the
> mails my corporate
> SMTP server(WinNT 4.0 Server) in local intranet.
>
> The problem is this,
>
> When I send an email without attachments it works
> fine. For example,
>
> Dim objCDONTSMail
> Set objCDONTSMail
> Server.CreateObject("CDONTS.NewMail")
> objCDONTSMail.From = " <mailto:myself@m...>
> myself@m..."
> objCDONTSMail.To = "someone@x...>"
> objCDONTSMail.Subject = "Test Mail without
> Attachments"
> objCDONTSMail.Importance=2
> objCDONTSMail.Send
> Set objCDONTSMail = Nothing
>
> (Result: Mail is Sent)
>
> I add an attachment in the same mail, For Example,
>
> Dim objCDONTSMail
> Set objCDONTSMail
> Server.CreateObject("CDONTS.NewMail")
> objCDONTSMail.From = " <mailto:myself@m...>
> myself@m..."
> objCDONTSMail.To = "someone@x...>"
> objCDONTSMail.Subject = "Test Mail with Attachments"
> objCDONTSMail.Importance=2
> objCDONTSMail.AttachFile
> "C:\Attachments\947418838.doc", "TestDocument",
> 0
> objCDONTSMail.Send
> Set objCDONTSMail = Nothing
>
> (Result: Mail is not Sent)
>
> Can someone help me?
>
> Best Regards
>
==============================================================
> </Anand.R>
> System Analyst, HCL Perot Systems
> Sapura Consortium - EG Generic Office Environment
> C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya,
> Selangor.
> Tel(O) : 03-83138190 Fax: 03-83138139 Mobile:
> 019-3598779
>
==============================================================
>
> This e-mail may contain confidential and/or
> privileged information. If
> you are not the intended recipient (or have received
> this e-mail in
> error) please notify the sender immediately and
> destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of
> the material in this
> e-mail is strictly forbidden.
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Message #5 by "Anand" <Anand@S...> on Fri, 7 Jun 2002 09:00:26 +0800
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C20E01.C4260F60
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Thank your Mr. Siegfried.
I am attaching the file that is in the server and not on the client.
Moreover the attachment file is present in one of the sub-directories of
the virtual root. What could be the problem? Mr. Manikandan Raghavan any
sugessions?
Regards....</Anand.R>
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: 07 June 2002 06:19
To: ASP CDO
Subject: [asp_cdo] RE: Problem with Attachments
CDONTS is a server-side component and cannot attach files which are
located on a client computer. To accomplish that you need to upload the
file to the server running your CDONTS code first.
For more info on uploading files you can check for example
<http://www.aspfaq.com> http://www.aspfaq.com.
<Siegfried />
> -----Original Message-----
> From: Anand [ <mailto:Anand@S...> mailto:Anand@S...]
> Sent: Thursday, June 06, 2002 11:36 AM
> To: ASP CDO
> Subject: [asp_cdo] Problem with Attachments
>
>
> Dear CDONTS Fundu's,
>
> This problem seems to be very peculiar. I am using CDONTS in my ASP
pages
> to send mails. I have set the SMARTHOST in my IIS SMTP server(Win2K
> Server) so that it will relay all the mails my corporate SMTP
server(WinNT
> 4.0 Server) in local intranet.
>
> The problem is this,
>
> When I send an email without attachments it works fine. For example,
>
> Dim objCDONTSMail
> Set objCDONTSMail = Server.CreateObject("CDONTS.NewMail")
> objCDONTSMail.From = "myself@m...
> < <mailto:myself@m...> mailto:myself@m...> "
> objCDONTSMail.To = "someone@x...>"
> objCDONTSMail.Subject = "Test Mail without Attachments"
> objCDONTSMail.Importance=2
> objCDONTSMail.Send
> Set objCDONTSMail = Nothing
>
> (Result: Mail is Sent)
>
> I add an attachment in the same mail, For Example,
>
> Dim objCDONTSMail
> Set objCDONTSMail = Server.CreateObject("CDONTS.NewMail")
> objCDONTSMail.From = "myself@m...
> < <mailto:myself@m...> mailto:myself@m...> "
> objCDONTSMail.To = "someone@x...>"
> objCDONTSMail.Subject = "Test Mail with Attachments"
> objCDONTSMail.Importance=2
> objCDONTSMail.AttachFile "C:\Attachments\947418838.doc",
> "TestDocument", 0
> objCDONTSMail.Send
> Set objCDONTSMail = Nothing
>
> (Result: Mail is not Sent)
>
> Can someone help me?
>
> Best Regards
> ==============================================================
> </Anand.R>
> System Analyst, HCL Perot Systems
> Sapura Consortium - EG Generic Office Environment
> C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya, Selangor.
> Tel(O) : 03-83138190 Fax: 03-83138139 Mobile: 019-3598779
> ==============================================================
>
> This e-mail may contain confidential and/or privileged information. If
you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in
this
> e-mail is strictly forbidden.
> --- Change your mail options at <http://p2p.wrox.com/manager.asp>
http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
---
Change your mail options at <http://p2p.wrox.com/manager.asp>
Message #6 by "Siegfried Weber" <sweber@c...> on Fri, 7 Jun 2002 03:42:12 +0200
|
|
File & Directory permissions. Sounds like the account used to run your
ASP code doesn't have permissions to read data from the directory you
specified.
<Siegfried />
> -----Original Message-----
> From: Anand [mailto:Anand@S...]
> Sent: Friday, June 07, 2002 3:00 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
> Thank your Mr. Siegfried.
>
> I am attaching the file that is in the server and not on the client.
>
> Moreover the attachment file is present in one of the sub-directories
of
> the virtual root. What could be the problem? Mr. Manikandan Raghavan
any
> sugessions?
>
> Regards....</Anand.R>
>
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: 07 June 2002 06:19
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
>
>
> CDONTS is a server-side component and cannot attach files which
are
> located on a client computer. To accomplish that you need to upload
the
> file to the server running your CDONTS code first.
>
> For more info on uploading files you can check for example
> http://www.aspfaq.com <http://www.aspfaq.com> .
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Anand [mailto:Anand@S...
> <mailto:Anand@S...> ]
> > Sent: Thursday, June 06, 2002 11:36 AM
> > To: ASP CDO
> > Subject: [asp_cdo] Problem with Attachments
> >
> >
> > Dear CDONTS Fundu's,
> >
> > This problem seems to be very peculiar. I am using CDONTS in
my
> ASP
> pages
> > to send mails. I have set the SMARTHOST in my IIS SMTP
> server(Win2K
> > Server) so that it will relay all the mails my corporate SMTP
> server(WinNT
> > 4.0 Server) in local intranet.
> >
> > The problem is this,
> >
> > When I send an email without attachments it works fine. For
> example,
> >
> > Dim objCDONTSMail
> > Set objCDONTSMail =3D
Server.CreateObject("CDONTS.NewMail")
> > objCDONTSMail.From =3D "myself@m...
> > <mailto:myself@m... <mailto:myself@m...> > "
> > objCDONTSMail.To =3D "someone@x...>"
> > objCDONTSMail.Subject =3D "Test Mail without Attachments"
> > objCDONTSMail.Importance=3D2
> > objCDONTSMail.Send
> > Set objCDONTSMail =3D Nothing
> >
> > (Result: Mail is Sent)
> >
> > I add an attachment in the same mail, For Example,
> >
> > Dim objCDONTSMail
> > Set objCDONTSMail =3D
Server.CreateObject("CDONTS.NewMail")
> > objCDONTSMail.From =3D "myself@m...
> > <mailto:myself@m... <mailto:myself@m...> > "
> > objCDONTSMail.To =3D "someone@x...>"
> > objCDONTSMail.Subject =3D "Test Mail with Attachments"
> > objCDONTSMail.Importance=3D2
> > objCDONTSMail.AttachFile "C:\Attachments\947418838.doc",
> > "TestDocument", 0
> > objCDONTSMail.Send
> > Set objCDONTSMail =3D Nothing
> >
> > (Result: Mail is not Sent)
> >
> > Can someone help me?
> >
> > Best Regards
> >
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > </Anand.R>
> > System Analyst, HCL Perot Systems
> > Sapura Consortium - EG Generic Office Environment
> > C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya, Selangor.
> > Tel(O) : 03-83138190 Fax: 03-83138139 Mobile: 019-3598779
> >
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >
> > This e-mail may contain confidential and/or privileged
> information. If
> you
> > are not the intended recipient (or have received this e-mail
in
> error)
> > please notify the sender immediately and destroy this e-mail.
Any
> > unauthorized copying, disclosure or distribution of the
material
> in
> this
> > e-mail is strictly forbidden.
> > ---
http://p2p.wrox.com/manager.asp
> <http://p2p.wrox.com/manager.asp> or to
> > unsubscribe send a blank email to
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp
> <http://p2p.wrox.com/manager.asp> or
>
>
> --- Change your mail options at http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
Message #7 by "Anand" <Anand@S...> on Fri, 7 Jun 2002 12:08:02 +0800
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C20E1B.F91FEC80
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Mr. Siegfried, it works. Just to tell you that the website was granted
anonymous access. With integrated NTLM settings it works fine(I received
the email with the attachment). So it is no doubt file and directory
permissions causing the problem.
Now how to solve the problem if the website is granted with anonymous
access? I have already given IUSR_Computername full permissions for the
files and directories of my virtual root. Any clues?
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: 07 June 2002 09:42
To: ASP CDO
Subject: [asp_cdo] RE: Problem with Attachments
File & Directory permissions. Sounds like the account used to run your
ASP code doesn't have permissions to read data from the directory you
specified.
<Siegfried />
> -----Original Message-----
> From: Anand [ <mailto:Anand@S...> mailto:Anand@S...]
> Sent: Friday, June 07, 2002 3:00 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
> Thank your Mr. Siegfried.
>
> I am attaching the file that is in the server and not on the client.
>
> Moreover the attachment file is present in one of the sub-directories
of
> the virtual root. What could be the problem? Mr. Manikandan Raghavan
any
> sugessions?
>
> Regards....</Anand.R>
>
>
> -----Original Message-----
> From: Siegfried Weber [ <mailto:sweber@c...>
mailto:sweber@c...]
> Sent: 07 June 2002 06:19
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
>
>
> CDONTS is a server-side component and cannot attach files which
are
> located on a client computer. To accomplish that you need to upload
the
> file to the server running your CDONTS code first.
>
> For more info on uploading files you can check for example
> <http://www.aspfaq.com> http://www.aspfaq.com <
<http://www.aspfaq.com> http://www.aspfaq.com> .
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Anand [ <mailto:Anand@S...>
mailto:Anand@S...
> < <mailto:Anand@S...> mailto:Anand@S...> ]
> > Sent: Thursday, June 06, 2002 11:36 AM
> > To: ASP CDO
> > Subject: [asp_cdo] Problem with Attachments
> >
> >
> > Dear CDONTS Fundu's,
> >
> > This problem seems to be very peculiar. I am using CDONTS in
my
> ASP
> pages
> > to send mails. I have set the SMARTHOST in my IIS SMTP
server(Win2K
> > Server) so that it will relay all the mails my corporate SMTP
> server(WinNT
> > 4.0 Server) in local intranet.
> >
> > The problem is this,
> >
> > When I send an email without attachments it works fine. For
> example,
> >
> > Dim objCDONTSMail
> > Set objCDONTSMail
Server.CreateObject("CDONTS.NewMail")
> > objCDONTSMail.From = "myself@m...
> > < <mailto:myself@m...> mailto:myself@m... > >
"
> > objCDONTSMail.To = "someone@x...>"
> > objCDONTSMail.Subject = "Test Mail without Attachments"
> > objCDONTSMail.Importance=2
> > objCDONTSMail.Send
> > Set objCDONTSMail = Nothing
> >
> > (Result: Mail is Sent)
> >
> > I add an attachment in the same mail, For Example,
> >
> > Dim objCDONTSMail
> > Set objCDONTSMail
Server.CreateObject("CDONTS.NewMail")
> > objCDONTSMail.From = "myself@m...
> > < <mailto:myself@m...> mailto:myself@m... > >
"
> > objCDONTSMail.To = "someone@x...>"
> > objCDONTSMail.Subject = "Test Mail with Attachments"
> > objCDONTSMail.Importance=2
> > objCDONTSMail.AttachFile "C:\Attachments\947418838.doc",
> > "TestDocument", 0
> > objCDONTSMail.Send
> > Set objCDONTSMail = Nothing
> >
> > (Result: Mail is not Sent)
> >
> > Can someone help me?
> >
> > Best Regards
> > ==============================================================
> > </Anand.R>
> > System Analyst, HCL Perot Systems
> > Sapura Consortium - EG Generic Office Environment
> > C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya, Selangor.
> > Tel(O) : 03-83138190 Fax: 03-83138139 Mobile: 019-3598779
> > ==============================================================
> >
> > This e-mail may contain confidential and/or privileged
information.
> If
> you
> > are not the intended recipient (or have received this e-mail
in
> error)
> > please notify the sender immediately and destroy this e-mail.
Any
> > unauthorized copying, disclosure or distribution of the
material
> in
> this
> > e-mail is strictly forbidden.
> > ---
<http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp
> < <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
or to
> > unsubscribe send a blank email to
>
> ---
> Change your mail options at <http://p2p.wrox.com/manager.asp>
http://p2p.wrox.com/manager.asp
> < <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
or
>
>
> --- Change your mail options at <http://p2p.wrox.com/manager.asp>
http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
---
Change your mail options at <http://p2p.wrox.com/manager.asp>
Message #8 by "Siegfried Weber" <sweber@c...> on Fri, 7 Jun 2002 16:21:08 +0200
|
|
If the attachment is stored in a directory named "C:\Attachments" you
should give your ISR_... account permissions to this directory and not
full control to the virtual root.
<Siegfried />
> -----Original Message-----
> From: Anand [mailto:Anand@S...]
> Sent: Friday, June 07, 2002 6:08 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
> Mr. Siegfried, it works. Just to tell you that the website was granted
> anonymous access. With integrated NTLM settings it works fine(I
received
> the email with the attachment). So it is no doubt file and directory
> permissions causing the problem.
>
> Now how to solve the problem if the website is granted with anonymous
> access? I have already given IUSR_Computername full permissions for
the
> files and directories of my virtual root. Any clues?
>
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: 07 June 2002 09:42
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
>
>
> File & Directory permissions. Sounds like the account used to
run
> your ASP code doesn't have permissions to read data from the directory
you
> specified.
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Anand [mailto:Anand@S...
> <mailto:Anand@S...> ]
> > Sent: Friday, June 07, 2002 3:00 AM
> > To: ASP CDO
> > Subject: [asp_cdo] RE: Problem with Attachments
> >
> > Thank your Mr. Siegfried.
> >
> > I am attaching the file that is in the server and not on the
> client.
> >
> > Moreover the attachment file is present in one of the sub-
> directories
> of
> > the virtual root. What could be the problem? Mr. Manikandan
> Raghavan
> any
> > sugessions?
> >
> > Regards....</Anand.R>
> >
> >
> > -----Original Message-----
> > From: Siegfried Weber [mailto:sweber@c...
> <mailto:sweber@c...> ]
> > Sent: 07 June 2002 06:19
> > To: ASP CDO
> > Subject: [asp_cdo] RE: Problem with Attachments
> >
> >
> >
> > CDONTS is a server-side component and cannot attach
files
> which
> are
> > located on a client computer. To accomplish that you need to
> upload
> the
> > file to the server running your CDONTS code first.
> >
> > For more info on uploading files you can check for
example
> > http://www.aspfaq.com <http://www.aspfaq.com>
> <http://www.aspfaq.com <http://www.aspfaq.com> > .
> >
> > <Siegfried />
> >
> > > -----Original Message-----
> > > From: Anand [mailto:Anand@S...
> <mailto:Anand@S...>
> > <mailto:Anand@S... <mailto:Anand@S...> > ]
> > > Sent: Thursday, June 06, 2002 11:36 AM
> > > To: ASP CDO
> > > Subject: [asp_cdo] Problem with Attachments
> > >
> > >
> > > Dear CDONTS Fundu's,
> > >
> > > This problem seems to be very peculiar. I am using
CDONTS
> in
> my
> > ASP
> > pages
> > > to send mails. I have set the SMARTHOST in my IIS SMTP
> server(Win2K
> > > Server) so that it will relay all the mails my
corporate
> SMTP
> > server(WinNT
> > > 4.0 Server) in local intranet.
> > >
> > > The problem is this,
> > >
> > > When I send an email without attachments it works
fine.
> For
> > example,
> > >
> > > Dim objCDONTSMail
> > > Set objCDONTSMail =3D
> Server.CreateObject("CDONTS.NewMail")
> > > objCDONTSMail.From =3D "myself@m...
> > > <mailto:myself@m... > > "
> > > objCDONTSMail.To =3D "someone@x...>"
> > > objCDONTSMail.Subject =3D "Test Mail without
> Attachments"
> > > objCDONTSMail.Importance=3D2
> > > objCDONTSMail.Send
> > > Set objCDONTSMail =3D Nothing
> > >
> > > (Result: Mail is Sent)
> > >
> > > I add an attachment in the same mail, For Example,
> > >
> > > Dim objCDONTSMail
> > > Set objCDONTSMail =3D
> Server.CreateObject("CDONTS.NewMail")
> > > objCDONTSMail.From =3D "myself@m...
> > > < <mailto:myself@m...>
mailto:myself@m...
> > > "
> > > objCDONTSMail.To =3D "someone@x...>"
> > > objCDONTSMail.Subject =3D "Test Mail with
Attachments"
> > > objCDONTSMail.Importance=3D2
> > > objCDONTSMail.AttachFile
> "C:\Attachments\947418838.doc",
> > > "TestDocument", 0
> > > objCDONTSMail.Send
> > > Set objCDONTSMail =3D Nothing
> > >
> > > (Result: Mail is not Sent)
> > >
> > > Can someone help me?
> > >
> > > Best Regards
> > >
>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > > </Anand.R>
> > > System Analyst, HCL Perot Systems
> > > Sapura Consortium - EG Generic Office Environment
> > > C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya,
> Selangor.
> > > Tel(O) : 03-83138190 Fax: 03-83138139 Mobile:
019-3598779
> > >
>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >
> > > This e-mail may contain confidential and/or privileged
> information.
> > If
> > you
> > > are not the intended recipient (or have received this
e-
> mail
> in
> > error)
> > > please notify the sender immediately and destroy this
e-
> mail.
> Any
> > > unauthorized copying, disclosure or distribution of
the
> material
> > in
> > this
> > > e-mail is strictly forbidden.
> > > ---
> <mailto:myself@m...> http://p2p.wrox.com/manager.asp
> <http://p2p.wrox.com/manager.asp>
> > <http://p2p.wrox.com/manager.asp
<http://p2p.wrox.com/manager.asp>
> > or to
> > > unsubscribe send a blank email to
> >
http://p2p.wrox.com/manager.asp
> <http://p2p.wrox.com/manager.asp>
> > <http://p2p.wrox.com/manager.asp
<http://p2p.wrox.com/manager.asp>
> > or
> >
> >
> > ---
http://p2p.wrox.com/manager.asp
> <http://p2p.wrox.com/manager.asp> or to
> > unsubscribe send a blank email to
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp
> <http://p2p.wrox.com/manager.asp> or
>
>
> --- Change your mail options at http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
Message #9 by "Anand" <Anand@S...> on Mon, 10 Jun 2002 10:16:00 +0800
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0002_01C21067.D20F2900
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I revoked full control for IUSR_.. and granted him with read & execute
access. It is working. That is absolutely excellent
Mr. Siegfried, I was struggling with this problem for the past three
weeks and all my system administrators gave up. Thank you very much Mr.
expert.
</Anand.R>
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: 07 June 2002 10:21
To: ASP CDO
Subject: [asp_cdo] RE: Problem with Attachments
If the attachment is stored in a directory named "C:\Attachments" you
should give your ISR_... account permissions to this directory and not
full control to the virtual root.
<Siegfried />
> -----Original Message-----
> From: Anand [ <mailto:Anand@S...> mailto:Anand@S...]
> Sent: Friday, June 07, 2002 6:08 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
> Mr. Siegfried, it works. Just to tell you that the website was granted
> anonymous access. With integrated NTLM settings it works fine(I
received
> the email with the attachment). So it is no doubt file and directory
> permissions causing the problem.
>
> Now how to solve the problem if the website is granted with anonymous
> access? I have already given IUSR_Computername full permissions for
the
> files and directories of my virtual root. Any clues?
>
>
> -----Original Message-----
> From: Siegfried Weber [ <mailto:sweber@c...>
mailto:sweber@c...]
> Sent: 07 June 2002 09:42
> To: ASP CDO
> Subject: [asp_cdo] RE: Problem with Attachments
>
>
>
> File & Directory permissions. Sounds like the account used to
run
> your ASP code doesn't have permissions to read data from the directory
you
> specified.
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Anand [ <mailto:Anand@S...>
mailto:Anand@S...
> < <mailto:Anand@S...> mailto:Anand@S...> ]
> > Sent: Friday, June 07, 2002 3:00 AM
> > To: ASP CDO
> > Subject: [asp_cdo] RE: Problem with Attachments
> >
> > Thank your Mr. Siegfried.
> >
> > I am attaching the file that is in the server and not on the
> client.
> >
> > Moreover the attachment file is present in one of the sub-
> directories
> of
> > the virtual root. What could be the problem? Mr. Manikandan
> Raghavan
> any
> > sugessions?
> >
> > Regards....</Anand.R>
> >
> >
> > -----Original Message-----
> > From: Siegfried Weber [ <mailto:sweber@c...>
mailto:sweber@c...
> < <mailto:sweber@c...> mailto:sweber@c...> ]
> > Sent: 07 June 2002 06:19
> > To: ASP CDO
> > Subject: [asp_cdo] RE: Problem with Attachments
> >
> >
> >
> > CDONTS is a server-side component and cannot attach
files
> which
> are
> > located on a client computer. To accomplish that you need to
upload
> the
> > file to the server running your CDONTS code first.
> >
> > For more info on uploading files you can check for
example
> > <http://www.aspfaq.com> http://www.aspfaq.com <
<http://www.aspfaq.com> http://www.aspfaq.com>
> < <http://www.aspfaq.com> http://www.aspfaq.com > > .
> >
> > <Siegfried />
> >
> > > -----Original Message-----
> > > From: Anand [ <mailto:Anand@S...>
mailto:Anand@S...
> < <mailto:Anand@S...> mailto:Anand@S...>
> > < <mailto:Anand@S...> mailto:Anand@S... > >
]
> > > Sent: Thursday, June 06, 2002 11:36 AM
> > > To: ASP CDO
> > > Subject: [asp_cdo] Problem with Attachments
> > >
> > >
> > > Dear CDONTS Fundu's,
> > >
> > > This problem seems to be very peculiar. I am using
CDONTS
> in
> my
> > ASP
> > pages
> > > to send mails. I have set the SMARTHOST in my IIS SMTP
> server(Win2K
> > > Server) so that it will relay all the mails my
corporate
> SMTP
> > server(WinNT
> > > 4.0 Server) in local intranet.
> > >
> > > The problem is this,
> > >
> > > When I send an email without attachments it works
fine.
> For
> > example,
> > >
> > > Dim objCDONTSMail
> > > Set objCDONTSMail
> Server.CreateObject("CDONTS.NewMail")
> > > objCDONTSMail.From = "myself@m...
> > > < <mailto:myself@m...>
mailto:myself@m... > > "
> > > objCDONTSMail.To = "someone@x...>"
> > > objCDONTSMail.Subject = "Test Mail without
> Attachments"
> > > objCDONTSMail.Importance=2
> > > objCDONTSMail.Send
> > > Set objCDONTSMail = Nothing
> > >
> > > (Result: Mail is Sent)
> > >
> > > I add an attachment in the same mail, For Example,
> > >
> > > Dim objCDONTSMail
> > > Set objCDONTSMail
> Server.CreateObject("CDONTS.NewMail")
> > > objCDONTSMail.From = "myself@m...
> > > < < <mailto:myself@m...>
mailto:myself@m...>
<mailto:myself@m...> mailto:myself@m...
> > > "
> > > objCDONTSMail.To = "someone@x...>"
> > > objCDONTSMail.Subject = "Test Mail with
Attachments"
> > > objCDONTSMail.Importance=2
> > > objCDONTSMail.AttachFile
> "C:\Attachments\947418838.doc",
> > > "TestDocument", 0
> > > objCDONTSMail.Send
> > > Set objCDONTSMail = Nothing
> > >
> > > (Result: Mail is not Sent)
> > >
> > > Can someone help me?
> > >
> > > Best Regards
> > >
> ==============================================================
> > > </Anand.R>
> > > System Analyst, HCL Perot Systems
> > > Sapura Consortium - EG Generic Office Environment
> > > C/O MSC Lab, MSC Central Incubator 63000. Cyberjaya,
> Selangor.
> > > Tel(O) : 03-83138190 Fax: 03-83138139 Mobile:
019-3598779
> > >
> ==============================================================
> > >
> > > This e-mail may contain confidential and/or privileged
> information.
> > If
> > you
> > > are not the intended recipient (or have received this
e-
> mail
> in
> > error)
> > > please notify the sender immediately and destroy this
e-
> mail.
> Any
> > > unauthorized copying, disclosure or distribution of
the
> material
> > in
> > this
> > > e-mail is strictly forbidden.
> > > ---
> < <mailto:myself@m...> mailto:myself@m...>
<http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp
> < <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
> > < <http://p2p.wrox.com/manager.asp>
http://p2p.wrox.com/manager.asp
< <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
> > or to
> > > unsubscribe send a blank email to
> >
<http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp
> < <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
> > < <http://p2p.wrox.com/manager.asp>
http://p2p.wrox.com/manager.asp
< <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
> > or
> >
> >
> > ---
<http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp
> < <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
or to
> > unsubscribe send a blank email to
>
> ---
> Change your mail options at <http://p2p.wrox.com/manager.asp>
http://p2p.wrox.com/manager.asp
> < <http://p2p.wrox.com/manager.asp> http://p2p.wrox.com/manager.asp>
or
>
>
> --- Change your mail options at <http://p2p.wrox.com/manager.asp>
http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
---
Change your mail options at <http://p2p.wrox.com/manager.asp>
|
|
 |