PDA

View Full Version : How to send an simple email thru WindowXP?


NinjaTurtle
07-25-2003, 04:02 PM
dear,

How to send an simple email thru WindowXP?
im using ASP3.0(not .NET), IIS 5.0/6.0

oracleguy
07-25-2003, 05:25 PM
You should be able to use CDONTS. But I believe you have to have the SMTP server installed in IIS (it is one of the install options).

NinjaTurtle
07-26-2003, 02:23 AM
SMTP? But when i saw some sample code they wanna to enter the Domain name, and Port number...

How to configure those SMTP? and im using dial up Modem.

Morgoth
07-26-2003, 04:23 AM
Dial Up, and you want to run a website, or just the ability to send e-mails through your server, yourself?

It's simple.

You need an SMTP server of some kind, either your own (on your computer) or a different one (being hosted on a different computer).

On your Windows XP CD, if you put it in the CD-ROM and allow it to auto open, or just open it yourself, you will see that you can add an add-on call SMTP which is your e-mailing server.
When that is installed you can use: CDONTS
http://www.aspwizard.co.uk/dev_aspwizard/xkudos_aspwizard/Xkudos/Page__view.asp?bodyrecord=-2112865761&language=eng
http://quadcomm.com/tips/sendmail.asp
http://www.aspwebpro.com/aspscripts/email/cdonts.asp
http://pacosdrivers.com/asp/cdoform/cdoform.asp
And a lot more... http://www.aspin.com/func/search?tree=aspin&qry=CDONTS&cat=

Now if you choose to use an external SMTP server, you will need a different e-mailing component then CDONTS. I use http://aspemail.com because it's free, and VERY easy... Simillar to CDONTS, except this component allows me to change my host, or SMTP server address.

Understand?
I think all the information you need is in this post.

NinjaTurtle
07-26-2003, 05:57 AM
Dear,

what i m trying to do is, i am doing a presentation thru my Notebook with XP pro installed. in office i can user win2k server to send out mail. but now i just wanna show my client that the email function is work that with Modem dial up.

Morgoth
07-26-2003, 06:23 AM
NinjaTurtle, you don't speak English as a first language, correct?

For e-mailing people using a webserver, as I explained, you need an SMTP server.

You must first get an SMTP server.

http://www.google.com
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&q=ASP+IIS+SMTP&btnG=Google+Search

When you have an SMTP server, you can move on from there.

oracleguy
07-26-2003, 08:36 PM
If your demoing a site for a client you could just use terminal services over your modem to connect to your computer at your desk and view the site. But it would be kinda slow over 56k.

whammy
07-27-2003, 02:50 PM
Also, if you're used to using CDONTS, you can always install CDONTS.dll on your XP machine.

Morgoth
07-27-2003, 09:38 PM
Originally posted by whammy
Also, if you're used to using CDONTS, you can always install CDONTS.dll on your XP machine.
If you have IIS 5.0 or 5.1 installed on XP, doesn't it already come with CDONTS? I always assumed it did...

whammy
07-27-2003, 11:41 PM
Not as far as I know. I had to install it on this machine... it could be in one of the service packs though... dunno - but I doubt it since there's newer stuff you can use.

I haven't bothered with service packs since I turn off IIS most of the time on this machine (I only use it for testing scripts), to save computer resources for GAMING. ;)

Morgoth
07-28-2003, 12:47 AM
gaming is fun...

whammy
07-28-2003, 01:15 AM
;)

I play UT 2003 pretty much exclusively now... but if you play any first person shooters, lemme know. :D

Morgoth
07-28-2003, 01:36 AM
I play Counter-Strike as if it were a bodily function.
I really do want to take into more first person shooters, CS is starting to become really repetative, and I am missing the feeling I use to get when you first start playing.

All I want now is rank.. I want to be number 1, which makes the game not so much fun after an hour of playing, even less sometimes.

NinjaTurtle
08-04-2003, 03:37 PM
Dear,

i get error message when i run my code!!!

This is the error message:

Error Type:
CDO.Message.1 (0x80040220)
The "SendUsing" configuration value is invalid.
/sendemail.asp, line 71


This is the source:

set objSendMail = Server.CreateObject("CDO.Message")
With objSendMail
.To = strTo
.From = strFrom
.Subject = strSubject
.HtmlBody = strBody
.send ----------------> Line 71
end with


+++++++++++++++++++++++++++++++++++++++++

And if i try this code:

set objSendMail = Server.CreateObject("CDONTS.Message") ---> Line 63

With objSendMail
.To = strTo
.From = strFrom
.Subject = strSubject
.HtmlBody = strBody
.send
end with

And i get this error message:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/sendemail.asp, line 63



i cant find CDONTS.dll from XP CD or in my PC, so i try to use ASPEmail.but where can i get the name of "SMTP host "???
im using localhost to run my script!!

whammy
08-04-2003, 05:30 PM
Invalid Class String probably means you haven't installed and registered CDONTS.dll.

http://crt.doce.lsu.edu/CRT-HTML-Class/Lesson29a.html

miranda
08-04-2003, 06:01 PM
CDONTS is the NT version of CDO

if you are using CDONTS then it is
set objSendMail = Server.CreateObject("CDONTS.NewMail")

whereas CDO for Win2k is
set objSendMail = Server.CreateObject("CDO.Message")

some other differences in the 2 are

CDO
as html .HTMLBody
plain text .TEXTBody


CDONTS
uses .Body

and the formatting is set using .Bodyformat like so

to format as html .BodyFormat = 0
to send as plain text .BodyFormat = 1 'default

remember whichever version you use to release the resources when done with them like so

Set objSendMail = Nothing

NinjaTurtle
08-05-2003, 05:08 PM
dear,
i already installed cdonts.dll to my XP. and it's work without any error message, but...but... i cant receive the email...that send thru with my system....

why??

how to detect the email "REALLY" send out successfully?

miranda
08-05-2003, 07:15 PM
as i tried to explain yesterday CDO and CDONTS are different

CDO example

set objSendMail = Server.CreateObject("CDO.Message")

With objSendMail
.To = strTo
.From = strFrom
.Subject = strSubject
.HtmlBody = strBody
.send
end with

CDONTS example

set objSendMail = Server.CreateObject("CDONTS.NewMail")
With objSendMail
.To = strTo
.From = strFrom
.Subject = strSubject
.Body = strBody
.BodyFormat = 0 'send formatted as html
.send
end with

whammy
08-05-2003, 07:17 PM
Ninja Turtle, check in your Queue folder, and see if the messages didn't get sent.

Then in your control panel, check the Event Viewer for error messages regarding the messages, that will give you a place to start.