PDA

View Full Version : sending emails with ASP?


jjshell
04-07-2005, 12:46 PM
hey there,
i'm used to code in PHP and i've been asked to add a feature to a website coded in ASP... I'll need to collect some user data and send them by email to the admin of the website.

How hard is that to send emails in ASP? Is there such a thing as the mail() function that PHP has?

Another thing, the data collected is sensitive (cc info) so I was wondering if there were some tricks that you gurus would share about security and emails.

I'm looking forward to reading your answers :)

fractalvibes
04-07-2005, 04:16 PM
Sending email is not difficult in ASP, but you have to use a component that should be built-in - CDONTS.

(I think there is a newer version called CDO something).

here is a simple example:

http://www.4guysfromrolla.com/webtech/faq/Email/faq2.shtml

fv

BigPete
04-07-2005, 05:49 PM
well, the way that you will send that email will depend on whether their server supports CDONTS or CDOSYS (aka CDO). If their server is say . . . Windows 2000 or newer, it will support CDO. W3Schools has a good tutorial on sending email via CDO.
http://www.w3schools.com/asp/asp_send_email.asp
That should point you in the right direction :thumbsup:

Oh, and if you're looking to securely transfer credit card info, you'll need to make sure that the server has SSL. I'm not really up on that though. Sorry.

jjshell
04-08-2005, 11:48 AM
Thanks for your replies :)

yeah the server has a secured connection for getting the data and managing it.
I'm not sure that SSL is still in action when the email is sent though.... And I'm a bit worried about it...