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
Tell us why did you choose this particular career path?
Explain the ternary conditional operator in php?
In php, how to redirect from one page to another page?
What is the scope of a variable defined outside a function?
Is age a variable in research?
Explain what does $_server means?
Explain me what is the meaning of a persistent cookie?
What does a dependant variable mean?
What is static in php?
How to get ip address of clients machine?
Where do we use get and post?
What is difference between array_merge and array_combine in php?
What are major variables in research?
How can we destroy the cookie in php?
Explain the types of string comparision function in PHP