Click here to Skip to main content
15,888,461 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: family Tree Script Pin
Noman Rasheed17-Jul-10 2:55
Noman Rasheed17-Jul-10 2:55 
GeneralRe: family Tree Script Pin
User 171649217-Jul-10 3:12
professionalUser 171649217-Jul-10 3:12 
GeneralRe: family Tree Script Pin
Noman Rasheed17-Jul-10 3:18
Noman Rasheed17-Jul-10 3:18 
GeneralRe: family Tree Script Pin
User 171649217-Jul-10 10:13
professionalUser 171649217-Jul-10 10:13 
GeneralRe: family Tree Script Pin
Noman Rasheed17-Jul-10 10:33
Noman Rasheed17-Jul-10 10:33 
GeneralRe: family Tree Script Pin
Noman Rasheed18-Jul-10 9:54
Noman Rasheed18-Jul-10 9:54 
GeneralRe: family Tree Script Pin
User 171649218-Jul-10 11:54
professionalUser 171649218-Jul-10 11:54 
QuestionPHP Mail from Script on Linux Pin
NDBUK16-Jul-10 9:38
NDBUK16-Jul-10 9:38 
Hi All,

Im new (Very New) to PHP. I have created a small script for use on Linux. When the script does certain things it will e-mail a user. Here i what I have so far:

$to = $email;
$subject = "Backup Account Quota Change";
$message = "The Quota for: $username has been changed\nYour new Quota is $quota";
$headers = "From: webmaster@mywebsite.com\r\nReply-To: webmaster@mywebsite.com";
$mail_sent = @mail( $to, $subject, $message, $headers );
echo $mail_sent ? "Mail sent" : "Mail failed";

Now ... How do i get it to use a remote mail server? For example our mail server is 192.168.0.11, and it needs to use a username of script.mail, and password of Password.

Could somebody also give me some idea on if this look ok? Any flaws/comments/suggestions?

Cheers
Si
AnswerRe: PHP Mail from Script on Linux Pin
cjoki19-Jul-10 4:26
cjoki19-Jul-10 4:26 
Questionregular expressions performance Pin
yftah198913-Jul-10 22:20
yftah198913-Jul-10 22:20 
AnswerRe: regular expressions performance Pin
Richard MacCutchan14-Jul-10 1:20
mveRichard MacCutchan14-Jul-10 1:20 
AnswerRe: regular expressions performance Pin
CitrusTech14-Jul-10 1:56
CitrusTech14-Jul-10 1:56 
QuestionRegular expressions performance Pin
yftah198913-Jul-10 22:19
yftah198913-Jul-10 22:19 
AnswerRe: Regular expressions performance Pin
Peter_in_278013-Jul-10 22:49
professionalPeter_in_278013-Jul-10 22:49 
AnswerRe: Regular expressions performance Pin
kinchit15-Jul-10 7:07
kinchit15-Jul-10 7:07 
QuestionBeagle Board?? Pin
AmbiguousName25-Jun-10 21:57
AmbiguousName25-Jun-10 21:57 
AnswerRe: Beagle Board?? Pin
LloydA11126-Jun-10 1:23
LloydA11126-Jun-10 1:23 
GeneralRe: Beagle Board?? Pin
AmbiguousName26-Jun-10 2:39
AmbiguousName26-Jun-10 2:39 
QuestionHelp on snippet Pin
ant-damage24-Jun-10 6:37
ant-damage24-Jun-10 6:37 
AnswerRe: Help on snippet Pin
darkjade31-Aug-10 4:31
darkjade31-Aug-10 4:31 
GeneralRe: Help on snippet Pin
ant-damage31-Aug-10 4:49
ant-damage31-Aug-10 4:49 
QuestionC++ Programming Pin
AmbiguousName24-Jun-10 4:55
AmbiguousName24-Jun-10 4:55 
AnswerRe: C++ Programming Pin
Richard MacCutchan24-Jun-10 4:58
mveRichard MacCutchan24-Jun-10 4:58 
GeneralRe: C++ Programming Pin
AmbiguousName24-Jun-10 5:03
AmbiguousName24-Jun-10 5:03 
AnswerRe: C++ Programming Pin
HimanshuJoshi3-Jul-10 2:43
HimanshuJoshi3-Jul-10 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.