Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Tell us why did you choose this particular career path?

950


Explain the ternary conditional operator in php?

1093


In php, how to redirect from one page to another page?

932


What is the scope of a variable defined outside a function?

1046


Is age a variable in research?

900


Explain what does $_server means?

1056


Explain me what is the meaning of a persistent cookie?

1041


What does a dependant variable mean?

1026


What is static in php?

1026


How to get ip address of clients machine?

981


Where do we use get and post?

969


What is difference between array_merge and array_combine in php?

1046


What are major variables in research?

1005


How can we destroy the cookie in php?

987


Explain the types of string comparision function in PHP

948