Sending E-Mail from a website.
Hi there,
Using dreamweaver and i have a contact page. The fields i have are Name, Email and Comments. Then i have a submit button.
When i click submit how would i get it to go to my E-mail address i.e [email protected]?
Any ideas greatly appreciated.
Carl
:)
Re: Sending E-Mail from a website.
Hi VB,
you can do this one of two ways..
1. Wou can send it directly in to an outlook box,but it will come unformatted using normal HTML mailto tags, but it will come out as unformatted and barely readable unfortunately.
The other way is using Collaborative Data Objects (CDONTS or CDOSYS) using Server side languages such as PHP or ASP with a host language.
Ready made code is at
www.powerasp.com
serch the sitre uundr either
CDONTS or CDOSYS
at this stage, use CDONTS.. Its easier but less robust)
and youll find the code there.
To use the code in Dreamweaver, youll already have a testing srever, site and folder set if as youve already got aproject creted and done.
so simply hith te CTRL +N, choose ASP VBScript page and create, then paste the code into the page form powerasp (not forgetting the credit mind..).
save the file into your project.
Then change the form name elements to what your form details are.
(if youre not sure, youre looking for the command line Request.Form("formname"))
And done!!!
Im under the assumption that your SMTP sever is configured to send and recieve mail, cos if its not, then it wont work!!! (sorry). If it doesnt work adn the code is workign perfectly, consult your administraotr or manual to configure this service in IIS.
Hope this helps
Kai
request.form("formname") )
Re: Sending E-Mail from a website.
Ah, just a little side note here..Any email sending, publicly accesible, script should have server side code, not just html form fields, which provide the destination email address. Otherwise spammers WILL find and use it to send all te mail your server will send before it crashes.
Re: Sending E-Mail from a website.
simple make PHP page and use mail functions..... its easy if u r intrested in learning it PM me i will sure send instant reply if i will be online