Jump to content

Email Form Help!


wyllclark

Recommended Posts

just dumping all your code on a help forum isn't going to get you much sympathy or help. what debugging have you done to pin down and solve the problem? also, your deadline isn't OUR problem.

 

telling us 'I've got this form that keeps messing up' is pointless; because we are not standing right next to you and don't know what you saw that leads you to believe that your code didn't do what you expect, nor at what point in the process the problem occurred at (is there a problem with the form page itself, did the form processing code produce an error, or does the received email contain the wrong information.)

 

so, both make an effort to find and solve your own problems and if you have to resort to getting help from someone else, tell them what symptom or error you are getting from the code and at what point in the process you got it.

Link to comment
Share on other sites

Hi,

 

do you realize that your script can be used to send arbitrary e-mails to any address? SInce you insert the user input straight into the headers and the body, even the dumbest script kiddie can easily assemble their own message and then use the headers to make your server send it anywhere they want.

 

Once the bots have found the contact form, your server will be blacklisted pretty soon, and then you aren't allowed to send any e-mail addresses.

 

You should keep away from low-level functions like mail(), unless you have in-depth knowledge about SMTP and specific reasons for why you need access to the raw mail content. If you just want to send an e-mail, use a library like PHPMailer.

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.

Guest
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.