Jump to content

setting up contact form for sending emails


Recommended Posts

I've been ALL over the internet trying to find complete step by step guides on getting php to work for my contact form and I can't find anything. Or at least nothing that makes sense to me. I know nothing about PHP, I'm more of a designer/html/css person. PHP is completely foreign to me and very hard to understand. I have downloaded PHPMailer but I have no idea what I'm supposed to do with it or how to really configure it. I really need help in that area. This contact form is the last thing I need before I can put my redesign of my website up.

Link to comment
Share on other sites

phpmailer is just an interface between php and your sending mail server. it does not process form data.


to process form data you either need to -


a) write some server-side code to take each input received from the form, validate it, and use it the way you want.


b) find a general 'form processor' script that will let you define its inputs, data/validation types, and define an email template that uses the input values the way you want.

Link to comment
Share on other sites

be advised that a LOT of the php code posted (and for sale) on the web is crap. just enough effort was put into it to get it to run and look pretty, but it often lacks security or any useful error checking/error reporting. so, you can end up with a script that allows hackers to take over your site (or in this case send their email through your server) or of spending as much time trying to get something to work that it would have taken you to write it yourself.


edit: the script you linked to is the general idea, but without seeing the code for it, there's no telling how good or bad it is.

Link to comment
Share on other sites

producing an application, in any programming language, requires that you go through a learning curve to -


1) learn the programming language,


2) learn how to write program logic that does what you want (i.e. to take the inputs you have, perform the processing you want, and produce the intended output/result), and


3) learn about and use things like security, validation, error checking/reporting so that it is a complete, safe, and useful application.


you are either going to need to take the time and effort to learn and gain experience so that you can do this yourself, find a solution that does this for you, or hire someone to do this for you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.