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


Please Help Members By Posting Answers For Below Questions

Why many companies are switching their current business language to php?

595


What is php regular expression?

510


Can we learn php without html?

552


Does wordpress still use php?

529


What is mean tnq

1090






Explain what is smarty?

567


Why session is required?

528


Which escape sequences can be used in single quoted strings in php?

529


What is difference between array_merge and array_combine in php?

514


What are the four scalar types of php?

623


What are the different data types in javascript?

522


Where is session id stored?

523


What is difference between md5 and SHA256?

541


Should I learn php before wordpress?

501


Is key exist in array php?

543