How to send Email using PHP with MySQL in Linux Server?..
Answer Posted / ks.tarun
u can send mail via php in linux with he help of linux
commands s well like..
<?php
$file = "test.txt";
system("echo -e 'Message Body' | mutt -s 'Subject' -a
test.txt email@email.com");
?>
that will send mail to the recipient with attachment of file.
for that u just have to install mutt rpm also
for that run below commands:
# yum -y install *mutt*
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Why session is required?
What is interface? Why it is used?
What is the use of ajax in php?
List some array functions in php?
What are the disadvantages of php?
What is the difference between explode() and split() functions?
What is the function mysql_pconnect() useful for?
Which function(s) in PHP computes the difference of arrays?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
What is the main difference between asp net and php?
How to write in a file in php?
Explain some of the php array functions?
How can you retrieve a cookie value?
Tell me is it possible to remove the html tags from data?
Which function can be used to delete a file?