LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 06: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, 01:51 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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


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


All times are GMT -5. The time now is 03:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration