Forum Moderators: phranque

Message Too Old, No Replies

Sending Mail on Windows Platform

how to send form data to an email address on Windows

         

webbunny

3:51 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



I have recently aquired a Windows 2000 Professional web server. I have some web forms running on my site and would like to submit the values on the form to an email address.

Up until recently I was using a UNIX web server which had sendmail installed. When I wanted to submit data through and email I referenced sendmail in a Perl application and wham-o.

But now I am on a Windows server with ASP scripts. I know this has to be fairly simple, but how do I go about doing the same thing on a different platform?

Any help would be greatly appreciated!

Thanks!

"webbunny"

pageoneresults

4:00 pm on Apr 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello webbunny welcome to WebmasterWorld!

We utilize ASPMail. There are other programs out there and CDONTS is another that seems to be real popular.

macrost

4:03 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld!
Here is a link that is from my host that explains CDONTS really simply!
ht*tp://www.1planhost.com/support/s_cdonts.asp
If you have any problems, post a reply and I will take a look at your code.
Mac

webbunny

4:30 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



Wow, thanks for the information!

I looked on the site recommended by macrost and I'm told that CDONTS is not supported on XP because it was replaced by CDOSYS. Lucky me, my development environment is on XP.

I am still very confused on how to go about setting this up. Is this an application that I need to go pay for and then install? Or is it more like IIS, and I go to the Control Panels and Add Components?

Help!

Thanks,

webbunny

dmorison

4:39 pm on Apr 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

If you have direct internet connection you could run a Win32 SMTP server on the box. Check out this free one:

[perso.club-internet.fr...]

(It's from the developers of the Pegasus mail client - I hope that's allowed, sticky me if it gets zapped)

And then in your ASP script, prize open an IP socket connection to localhost on port 25 and send your message using raw SMTP commands. There's plenty of SMTP reference sites on the web - it is pretty straight forward.

Hope this helps!