<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sending Email under PHP in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114342#M74768</link>
    <description>Thank you for all your replies.&lt;BR /&gt;&lt;BR /&gt;I attach "messages" file for error checking.  Please help.&lt;BR /&gt;&lt;BR /&gt;By the way, my colleague has a problem as below: (Please help him also.)&lt;BR /&gt;&lt;BR /&gt;I have a virtal hosting server by named base method.&lt;BR /&gt;I found that I cannot use mail() function when using PHP4 even I set correctly in php.ini and sendmail to open smtp and set the sever has relay permission.  But still fail to use mail() function.  I found from other forums mention about some settings in "httpd.conf" regarding "php_admin_value". Also it mentions this function can be overrided by .htaccess and virtual host, what does it mean?  And how can I solve the mail() problem of PHP&lt;BR /&gt;php-4.2.2-8.0.5&lt;BR /&gt;httpd-2.0.40-8&lt;BR /&gt;sendmail-8.12.5-7&lt;BR /&gt;</description>
    <pubDate>Mon, 10 Nov 2003 12:38:39 GMT</pubDate>
    <dc:creator>Ng King Wang</dc:creator>
    <dc:date>2003-11-10T12:38:39Z</dc:date>
    <item>
      <title>Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114336#M74762</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I am using PHP 4.2.2 on Linux 8.0.&lt;BR /&gt;&lt;BR /&gt;I would like to send email by using PHP, but I fail to do it.  My colleague confirms that all eequired PHP modules are loaded.&lt;BR /&gt;&lt;BR /&gt;What configuration should I need to do for solving this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Sun, 09 Nov 2003 09:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114336#M74762</guid>
      <dc:creator>Ng King Wang</dc:creator>
      <dc:date>2003-11-09T09:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114337#M74763</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What do your logs report ?&lt;BR /&gt;You should have something like this in your PHP code :&lt;BR /&gt;...&lt;BR /&gt;$recipient="foo@yahoo.com";&lt;BR /&gt;$title="trial";&lt;BR /&gt;$message="hello world";&lt;BR /&gt;mail($recipient,$title,$message);&lt;BR /&gt;echo "done);&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;You can test it replacing last line by :&lt;BR /&gt;if (mail($recipient,$title,$message)))echo "ok, done";&lt;BR /&gt;else echo "problem on sending";&lt;BR /&gt;&lt;BR /&gt;then post your log error messag for analysis.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Sun, 09 Nov 2003 10:49:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114337#M74763</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-11-09T10:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114338#M74764</link>
      <description>Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;Which log file should I post?  &lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Nov 2003 11:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114338#M74764</guid>
      <dc:creator>Ng King Wang</dc:creator>
      <dc:date>2003-11-09T11:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114339#M74765</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;depending on your machine, httpd.log if you set one up, or the part of /var/log/messages corresponding to the time of your sending trial.&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Sun, 09 Nov 2003 11:48:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114339#M74765</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-11-09T11:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114340#M74766</link>
      <description>I suppose the answer to the log question would be the part concerning your php mini script test &lt;BR /&gt;&lt;BR /&gt;probably in &lt;BR /&gt;&lt;BR /&gt;/var/log/http/paccess.log  &lt;BR /&gt;or&lt;BR /&gt;/var/log/http/error.log&lt;BR /&gt;&lt;BR /&gt;Jerome, will correct me if I am wrong !&lt;BR /&gt;&lt;BR /&gt;J-P (Bonsoir, Jerome)</description>
      <pubDate>Sun, 09 Nov 2003 11:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114340#M74766</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-11-09T11:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114341#M74767</link>
      <description>Salut JP (hi JP !) !&lt;BR /&gt;Exactly, especailly error file, but this of course if you set up logging on your httpd server.&lt;BR /&gt;If you don't see anything, then /var/log/messages will do.&lt;BR /&gt;&lt;BR /&gt;J (not on weed end watching tv, JP ?)</description>
      <pubDate>Sun, 09 Nov 2003 12:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114341#M74767</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-11-09T12:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114342#M74768</link>
      <description>Thank you for all your replies.&lt;BR /&gt;&lt;BR /&gt;I attach "messages" file for error checking.  Please help.&lt;BR /&gt;&lt;BR /&gt;By the way, my colleague has a problem as below: (Please help him also.)&lt;BR /&gt;&lt;BR /&gt;I have a virtal hosting server by named base method.&lt;BR /&gt;I found that I cannot use mail() function when using PHP4 even I set correctly in php.ini and sendmail to open smtp and set the sever has relay permission.  But still fail to use mail() function.  I found from other forums mention about some settings in "httpd.conf" regarding "php_admin_value". Also it mentions this function can be overrided by .htaccess and virtual host, what does it mean?  And how can I solve the mail() problem of PHP&lt;BR /&gt;php-4.2.2-8.0.5&lt;BR /&gt;httpd-2.0.40-8&lt;BR /&gt;sendmail-8.12.5-7&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Nov 2003 12:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114342#M74768</guid>
      <dc:creator>Ng King Wang</dc:creator>
      <dc:date>2003-11-10T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email under PHP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114343#M74769</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Attached file is the error log.&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Mon, 10 Nov 2003 12:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-email-under-php/m-p/3114343#M74769</guid>
      <dc:creator>Ng King Wang</dc:creator>
      <dc:date>2003-11-10T12:41:27Z</dc:date>
    </item>
  </channel>
</rss>

