|
-
Nov 21st, 2005, 06:40 AM
#1
Thread Starter
Lively Member
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
-
Nov 21st, 2005, 07:22 AM
#2
Fanatic Member
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") )
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
-
Nov 22nd, 2005, 03:36 AM
#3
Fanatic Member
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.
What bug? That's not a bug. It's an undocumented feature!
-
Nov 22nd, 2005, 08:27 AM
#4
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|