Hello friends ..

I wanted a feedback form for my small site...
Its pure HTML and i dont know anything about PHP ..

I got a script which mails the form contents to the admin..

Here is the code

mail( "$webmaster_email", "Feedback Form Results",
  $comments, "From: $email_address" );

Is it safe to use mail() like this??

Recommended Answers

All 2 Replies

This is the standard php email statement but there will have to be more to your script than just this. At a minimum, the variables used in the mail statement need to be set to the required values. With respect to 'safety' have a look at the link below:
http://www.w3schools.com/php/php_secure_mail.asp

Thank you :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.