LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 08-25-2005, 05:06 AM   #1
akamaru607
LQ Newbie
 
Registered: May 2005
Location: Malaysia
Posts: 22

Rep: Reputation: 15
Question php and sendmail


im juz start learning PHP, now having problem on mail function ... hope some1 can help me, thanx alot ... then im testing with this php code ...

<?php
$to = 'dyer607@hotmail.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

but it not working, can some1 help me ... i hav try to configure sendmail, but not really understand it, coz totally new to it

i can send email out to hotmail by using localhost smtp ... so i really no idea y the php mail function not working ...
 
Old 08-25-2005, 12:51 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Here's your other two on the same topic, the bolded one
has responses...

http://www.linuxquestions.org/questi...hreadid=356786
http://www.linuxquestions.org/questi...hreadid=356714
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 01:19 PM
php sendmail... HELP! Doug86 Linux - Newbie 3 07-29-2005 09:09 AM
sendmail and php puremourning Linux - Software 1 05-12-2005 05:06 PM
PHP/Sendmail Help dailyuser Programming 0 08-31-2004 10:35 AM
Sendmail and PHP Aldyn Linux - Newbie 0 06-02-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration