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

where do i go to paste my google adsense code?

hello everyone. i just copied the www.facebook.com/login.php source code and pasted it into fblogin.php page in my wamp directory. now i made the following changes at the beginning of fblogin.php i added this code what i wanted this code t

how to display only product image with product name in 4 column set from mysql database?

Can you write the PHP for my website for me?

How can I access information sent through POST on a form?



Custom Search