PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

is there any sendemail function in php for sending contents of a form through email?


Yes, there is a very easy way of sending emails through PHP using the mail function, which assuming it is configured on the server correctly allows you to send emails very easily. Of course you should perform necessary checks on the data before sending emails and consider limiting how many can be sent, but the syntax is really simple:

mail("to","subject","message");

there is a fourth parameter which is optional and contains things like the 'from' header and more.

For more information read the manpage on PHP.net.

Comment on this Question and Answer >>>

ASK A QUESTION

More website PHP Questions

How to expire cookies when user pressed a button in webpage? I want have a link in my website then delete cookies.

How do I display todays date on my website?

I have two web solutions I downloaded from the internet. Jobs Portal, Classified and a forum script. Each of the scripts has its own signup and log in module. How can I make visitors register and login through one webpage without having to login in all th

Hello - I am writing a PHP program to control an external camera connected to the USB port. For example I issue commands such as 'up', 'down', etc via an external program that I call using exec("cameracontrol.exe"). I would like to store

how to get gmail inboxmessages in php using username and password



Custom Search