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 many companies are switching their current business language to php?
What is php regular expression?
Can we learn php without html?
Does wordpress still use php?
What is mean tnq
Explain what is smarty?
Why session is required?
Which escape sequences can be used in single quoted strings in php?
What is difference between array_merge and array_combine in php?
What are the four scalar types of php?
What are the different data types in javascript?
Where is session id stored?
What is difference between md5 and SHA256?
Should I learn php before wordpress?
Is key exist in array php?