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 can I find out where a site visitor comes from?

I would like to browse to a url eg http://mysite.com/index.html and dump the content of that site in a variable eg $htmlDump?

What is this form of code for a website? http://www.virginamerica.com/va/home.do the drop down menu's. whats the name for that. im trying to incorporate it into my design, but dont no the name for it.

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

my web site www.innovativephp.com is not configured properly to dns how can i do that?



Custom Search