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
Is php faster than javascript?
How do you use end in python?
What is polymorphism in oop php?
Tell me what is the definition of a session?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
Do csrf tokens expire?
What u mean by query?
Tell me will a comparison of an integer 12 and a string "13" work in php?
What are the different filter functions used to filter a variable?
What is cms php?
How to pass variables and data from php to javascript?
Define metaphone()?
What is advanced php programming?
Why is php so popular?
What is static variable in php?