|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PHP
DETAILS
Question: How send Email using PHP?
Answer: To send Email using PHP, you use the mail() function. This mail() function accepts 5 parameters as follows (the last 2 are optional). You need webserver, you can't send email from localhost. eg : mail($to,$subject,$message,$headers);
|
|
|
Category |
PHP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8663 users |
Added on |
8/27/2016 |
Views |
66924 |
Rate it! |
|
|
Question:
How send Email using PHP?
Answer:
To send Email using PHP, you use the mail() function. This mail() function accepts 5 parameters as follows (the last 2 are optional). You need webserver, you can't send email from localhost. eg : mail($to,$subject,$message,$headers); Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How to find Current Date and Time in PHP?
|
View Answer
|
|
Difference between mysql_connect and mysql_pconnect in PHP?
|
View Answer
|
|
What is the use of "ksort" in PHP?
|
View Answer
|
|
What is the difference between $var and $$var?
|
View Answer
|
|
What are the encryption techniques in PHP?
|
View Answer
|
|
What htmlentities() does in PHP?
|
View Answer
|
|
How to delete a file from the system in PHP?
|
View Answer
|
|
How to get the value of Current Session Id in PHP?
|
View Answer
|
|
What are the different types of errors in PHP ?
|
View Answer
|
|
What is SQL Injection ?
|
View Answer
|
|
What is x+ mode in fopen() used for, in case of PHP?
|
View Answer
|
|
What is PEAR in case of PHP?
|
View Answer
|
|
Distinguish between urlencode and urldecode in PHP?
|
View Answer
|
|
What are different types of Runtime Errors in PHP?
|
View Answer
|
|
What are the different validators in ASP.NET?
|
View Answer
|
|
How to execute an sql query? How to fetch its result ?
|
View Answer
|
|
What is the difference between Session and Cookie?
|
View Answer
|
|
What are different types of Runtime Errors in PHP?
|
View Answer
|
|
Explain the "unlink" and "unset" functions.
|
View Answer
|
|
How can we encrypt the password using PHP?
|
View Answer
|