Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 08-25-2005, 06:06 AM   #1
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 ...

$to = '';
$subject = 'the subject';
$message = 'hello';
$headers = 'From:' . "\r\n" .
'Reply-To:' . "\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, 01:51 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
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.

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

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:19 PM
php sendmail... HELP! Doug86 Linux - Newbie 3 07-29-2005 10:09 AM
sendmail and php puremourning Linux - Software 1 05-12-2005 06:06 PM
PHP/Sendmail Help dailyuser Programming 0 08-31-2004 11:35 AM
Sendmail and PHP Aldyn Linux - Newbie 0 06-02-2003 11:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:35 PM.

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