Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: RE: asp_cdo digest: January 15, 2002


Message #1 by "McCloy, Russell" <Russell.McCloy@B...> on Wed, 16 Jan 2002 19:39:51 +1100
1. Re: Newbie in email



Hi Lisa,



If you have IIS4.0 or IIS5.0 on your server, look in the 

..\intetpub directory.

If you have a folder in there called MailRoot then 

chances are you have SMTP installed.



Paste this code into an ASP page within a folder in IIS:



=======================================================

<%



	

		dim NewMail

		set NewMail = server.createobject("CDONTS.NewMail")

		

		NewMail.From = "youraddress@y..."

		

		NewMail.To = "yourASPapp@h..."

		

		NewMail.Subject = "enter your subject here"

		

		NewMail.BodyFormat=0

		NewMail.MailFormat=0

		

		NewMail.Body =  "Enter the body of your email here"

		

		NewMail.Send



%>



=======================================================

Replace the to email address to your email address and change whatever else

you

want to change. The from address doesn't really matter but it must be there.



Run the page thru your browser and hope fully,somewhere between 1 minute and

1hour,

you will receive an email.



I may have missed something but I hope this helps.



IF you have a lot of email addresses in a database then put the above code

in

a recordset loop and it will send all the addresses with a bit of

modification to 

the code.



thanks



RuSS



russell.mccloy@b...

===========================







-----Original Message-----

From: ASP CDO digest [mailto:asp_cdo@p...]

Sent: Wednesday, 16 January 2002 11:01 AM

To: asp_cdo digest recipients

Subject: asp_cdo digest: January 15, 2002





-----------------------------------------------

When replying to the digest, please quote only

relevant material, and edit the subject line to

reflect the message you are replying to.

-----------------------------------------------



The URL for this list is:

http://p2p.wrox.com/list.asp?list=asp_cdo



ASP_CDO Digest for Tuesday, January 15, 2002.



1. Re: Newbie in email

2. Re: Newbie in email

3. File System Object

4. Re: File System Object

5. RE: Error : Object required: 'Application(...)'

6. RE: Error : Object required: 'Application(...)'

7. Collaboration Data Objects (0x43ED) [ - [(80004005)]]

8. RE: Collaboration Data Objects (0x43ED) [ - [(80004005)]]



----------------------------------------------------------------------



Subject: Re: Newbie in email

From: "Siegfried Weber" <sweber@c...>

Date: Tue, 15 Jan 2002 01:56:18 +0100

X-Message-Number: 1



1. You cannot use Outlook components form an ASP application. Outlook is

only good for windows client applications. So, CDONTS might be your

choice.



2. CDONTS doesn't support this features. CDONTS can only submit a

message to a locally running Microsoft IIS4/5 SMTP Service without

authentication.



3. If you can run your own SMTP server, why not doing it. If you can't

and need to use one provided by your ISP you can't use CDONTS.



Having said all that, consider to use CDOSYS (CDO for Windows 2000). It

ships with Windows 2000/XP/.NET Server and has the ability to send SMTP

mails to remote servers with authentication.



<Siegfried />



> -----Original Message-----

> From: lisa@m... [mailto:lisa@m...]

> Sent: Tuesday, January 15, 2002 12:34 AM

> To: ASP CDO

> Subject: [asp_cdo] Re: Newbie in email

>

> > Hello,

> >

> > Merry Xmas and a Happy New Year to everyone.

> >

> > I am new to emailing stuff using ASP. For the past few days I have

been

> > reading a lot on sending mail in this forum as well as some books

and it

> > is making me more confused than ever.

> >

> > I need to write a webpage to send a email confirming a user's

> > registration, that is all. Here are my questions:

> >

> > 1.  I read that i can use either the Outlook components or the

CDONTS to

> > send a mail. Either way, how do i connect to the SMTP server?

> >

> > 2.  When I am connected to the SMTP server, i think that i will be

> needing

> > a UID and password. How do i do that?

> >

> > 3.  About the SMTP server, should i have my own SMTP server, or

should i

> > just connect to another existing third party SMTP server?

> >

> > Is there a guide for me to read, because all of the sites i went to

will

> > only show me how to send an email but without the connection to smtp

> > server and how to login into an account.

> >

> > Let me know if have the wrong concept

> >

> > Thanks

> > really confused

> >

>




$subst('Email.Unsub').



----------------------------------------------------------------------



Subject: Re: Newbie in email

From: farid@a...

Date: Mon, 14 Jan 2002 20:00:34 -0800

X-Message-Number: 2





Dear Lisa



This is my experience when made "mail to" facility on my website.

I'm running IIS 5 on W2K, with SMTP service activated.

I installed JMail component and used it to send email from my machine.

To connect to SMTP server i used script like this :



Set JMail = Server.CreateObject("JMail.SMTPMail")

' This is my local SMTP server

JMail.ServerAddress = "10.1.86.5"



for further information you can look at:

jmail website

alexander haneng website



sorry a forget the URL



regards

farid







 



                    lisa@m...



                    ion.com              To:     "ASP CDO"

<asp_cdo@p...>                                  

                                         cc:



                    01/14/2002           Subject:     [asp_cdo] Re: Newbie

in email                                

                    03:34 PM



                    Please



                    respond to



                    "ASP CDO"



 



 









> Hello,

>

> Merry Xmas and a Happy New Year to everyone.

>

> I am new to emailing stuff using ASP. For the past few days I have been

> reading a lot on sending mail in this forum as well as some books and it

> is making me more confused than ever.

>

> I need to write a webpage to send a email confirming a user's

> registration, that is all. Here are my questions:

>

> 1.  I read that i can use either the Outlook components or the CDONTS to

> send a mail. Either way, how do i connect to the SMTP server?

>

> 2.  When I am connected to the SMTP server, i think that i will be

needing

> a UID and password. How do i do that?

>

> 3.  About the SMTP server, should i have my own SMTP server, or should i

> just connect to another existing third party SMTP server?

>

> Is there a guide for me to read, because all of the sites i went to will

> only show me how to send an email but without the connection to smtp

> server and how to login into an account.

>

> Let me know if have the wrong concept

>

> Thanks

> really confused

>
















----------------------------------------------------------------------



Subject: File System Object

From: sheeraz rashid <sheeraz11@y...>

Date: Mon, 14 Jan 2002 21:15:40 -0800 (PST)

X-Message-Number: 3



--0-773290561-1011071740=:90122

Content-Type: text/plain; charset=us-ascii



 

Hi,



 I am using the FSO (FileSystem Object) for uploading of picture. The Code

is working fine on the Local Network but when I tried this code to be used

on Internet it doesn't respond me. It continue to upload then it gives error

"Read Error".  We have Firewall install on the server from where i am

testing this on the net.



   We have win XP and IIS 5.0 on the Server. Can you tell me whats the

wrong? Is it could be code error or somehing else?



 Thanks.





have a good time.

with best wishes.

from

   SHEERAZ.





---------------------------------

Do You Yahoo!?

Send FREE video emails in Yahoo! Mail.




----------------------------------------------------------------------



Subject: Re: File System Object

From: arshad siddiqui <ash_arshad@y...>

Date: Tue, 15 Jan 2002 00:22:55 -0800 (PST)

X-Message-Number: 4



Hi Rashid,

It might be due to the firewall on your server.because

it is working on your local network then it should

also work on internet,it means that there is no error

in your code it has to do something with your

firewall.

Regards

--Arshad--



--- sheeraz rashid <sheeraz11@y...> wrote:

>  

> Hi,

> 

>  I am using the FSO (FileSystem Object) for

> uploading of picture. The Code is working fine on

> the Local Network but when I tried this code to be

> used on Internet it doesn't respond me. It continue

> to upload then it gives error "Read Error".  We have

> Firewall install on the server from where i am

> testing this on the net.

> 

>    We have win XP and IIS 5.0 on the Server. Can you

> tell me whats the wrong? Is it could be code error

> or somehing else?

> 

>  Thanks.

> 

> 

> have a good time.

> with best wishes.

> from

>    SHEERAZ.

> 

> 

> ---------------------------------

> Do You Yahoo!?

> Send FREE video emails in Yahoo! Mail.

> 





> $subst('Email.Unsub').

> 





__________________________________________________

Do You Yahoo!?

Send FREE video emails in Yahoo! Mail!

http://promo.yahoo.com/videomail/



----------------------------------------------------------------------



Subject: RE: Error : Object required: 'Application(...)'

From: "ji" <ji_mminm@h...>

Date: Tue, 15 Jan 2002 09:16:07

X-Message-Number: 5



Thank's... 



I have registered cdohtml.dll library, but the error is the same... 



If I want that the asp pages and CDO are in another computer than 

Exchange200, What have I to do?



Thank's at all



ji_mmin@h...



> 1. I wouldn't recommend using Outlook 2000/2002 as basis to get MAPI & 

> CDO 1.21 installed.

> 2. Outlook 2000 and 2002 don't install CDO 1.21 by default.

> 3. You are trying to use the CDO 1.21 HTML Rendering Library. This 

> library is only installed with:

> 

> - Exchange 5.5 Server - full install

> - Exchange 5.5 Server - Outlook Web Access (OWA) only

> - Exchange 2000 Server

> 

> <Siegfried />

> 



----------------------------------------------------------------------



Subject: RE: Error : Object required: 'Application(...)'

From: "Siegfried Weber" <sweber@c...>

Date: Tue, 15 Jan 2002 14:23:53 +0100

X-Message-Number: 6



You cannot just register cdohtml.dll. It doesn't work (as you already

have encountered) and violates copyright laws.



As I mentioned in my previous reply, you must install one of the

following products to get a working configuration:



- Exchange 5.5 Server - full install

- Exchange 5.5 Server - Outlook Web Access (OWA) only

- Exchange 2000 Server



<Siegfried />



> -----Original Message-----

> From: ji [mailto:ji_mminm@h...]

> Sent: Tuesday, January 15, 2002 10:16 AM

> To: ASP CDO

> Subject: [asp_cdo] RE: Error : Object required: 'Application(...)'

>

> Thank's...

>

> I have registered cdohtml.dll library, but the error is the same...

>

> If I want that the asp pages and CDO are in another computer than

> Exchange200, What have I to do?

>

> Thank's at all

>

> ji_mmin@h...

>

> > 1. I wouldn't recommend using Outlook 2000/2002 as basis to get MAPI

& =3D

> > CDO 1.21 installed.

> > 2. Outlook 2000 and 2002 don't install CDO 1.21 by default.

> > 3. You are trying to use the CDO 1.21 HTML Rendering Library. This 

=3D

> > library is only installed with:

> >

> > - Exchange 5.5 Server - full install

> > - Exchange 5.5 Server - Outlook Web Access (OWA) only

> > - Exchange 2000 Server

> >

> > <Siegfried />

> >

>




$subst('Email.Unsub').



----------------------------------------------------------------------



Subject: Collaboration Data Objects (0x43ED) [ - [(80004005)]]

From: "ji" <ji_mminm@h...>

Date: Tue, 15 Jan 2002 15:16:28

X-Message-Number: 7



Hi again...



I have another problem. I find a script to logon to Exchange Server 2000 

and run correctly. If I use this code in a ASP doesn't run. 



I have the ASP pages and IIS 5.0 in a W2K computer and Exchange 2000 in 

another computer with W2K.



The code error is:

Collaboration Data Objects (0x43ED) [ - [(80004005)]]



And the Logon sentence: 

objSession.Logon "", "", False, True, 0, True, strProfileInfo



I have read that this error have could a problem with permissions... how 

have I to configure both computers?.



Thank's to everyone.



ji_mminm@h...



Excuses again for my English.

----------------------------------------------------------------------



Subject: RE: Collaboration Data Objects (0x43ED) [ - [(80004005)]]

From: "Siegfried Weber" <sweber@c...>

Date: Tue, 15 Jan 2002 18:19:06 +0100

X-Message-Number: 8



An ASP application runs under a certain security context, means:

account. By default this account, called the "Anonymous Access Account",

is "IUSR_<YoursServerName>. This account doesn't have permissions to

open a mailbox by default.



For more information about IIS & authentication, check

http://www.cdolive.com/asp2.htm



<Siegfried />



> -----Original Message-----

> From: ji [mailto:ji_mminm@h...]

> Sent: Tuesday, January 15, 2002 4:16 PM

> To: ASP CDO

> Subject: [asp_cdo] Collaboration Data Objects (0x43ED) [ -

[(80004005)]]

>

> Hi again...

>

> I have another problem. I find a script to logon to Exchange Server

2000

> and run correctly. If I use this code in a ASP doesn't run.

>

> I have the ASP pages and IIS 5.0 in a W2K computer and Exchange 2000

in

> another computer with W2K.

>

> The code error is:

> Collaboration Data Objects (0x43ED) [ - [(80004005)]]

>

> And the Logon sentence:

> objSession.Logon "", "", False, True, 0, True, strProfileInfo

>

> I have read that this error have could a problem with permissions...

how

> have I to configure both computers?.

>

> Thank's to everyone.

>

> ji_mminm@h...

>

> Excuses again for my English.




$subst('Email.Unsub').







---



END OF DIGEST







  Return to Index