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
https://forums.phpfreaks.com/topic/288556-email-form-help/#findComment-1479833
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
https://forums.phpfreaks.com/topic/288556-email-form-help/#findComment-1479858
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.