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
what is PDO?
How to get number of elements in an array?
What are sql functions?
Tell me what is the use of "enctype" attribute in a html form?
How can we pass the variable through the navigation between the pages?
How can we automatically escape incoming data?
What is difference between strstr() and stristr()?
What is the difference between $argv and $argc? Give example?
How would you declare a function that receives one parameter name hello?
What is nan value?
What is session cookies php?
What is php limit?
What is the difference between core php and php?
What is self in php?
Why constructor is not overridden?