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 php artisan tinker?
Is server side a session?
Explain how we can get the number of elements in an array?
What is the array in php?
Is php a dying language?
What is a namespace in php?
Does php have block scope?
What is the maximum size of a table in mysql?
How can I find my php version?
Tell me how comfortable are you with writing html entirely by hand?
When to use get and post request?
What is the difference between abstract class and interface in php?
Why triggers are used in mysql?
What is the difference between die () and exit () in php?
What does echo mean in php?