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 xss and csrf?
What is if isset ($_ post submit )) in php?
What are magic methods?
What do you use php for?
How to terminate the execution of a script in PHP?
What are the php variables?
What is the best way to change the key without changing the value of a php array element?
What are the methods to submit form in php?
Explain the purpose of output buffering in php.
Do you know what is use of count() function in php?
Is null or empty c#?
Which is variable cost?
What is php glob?
What is warning – “cannot modify header information – headers already sent”?
How to delete an element from an array?