Re: PHP mail() function not working in 1.1.19.6305

2009-02-09 Thread Miles J

Why not update to 1.2? Or check your cake lib files to see if email
exists.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: PHP mail() function not working in 1.1.19.6305

2009-02-09 Thread Marcelo Andrade

On Sun, Feb 8, 2009 at 11:04 PM, peterhf peter.f...@sbcglobal.net wrote:

 This code is not working:

$result = mail('peter.f...@sbcglobal.net', 'This is a test.',
 'This is a test.', 'From: peter.f...@sbcglobal.net' );

// Show the login page.
$this-redirect( '/pages/home' );
exit();

 If I echo $result, I get a 1.

 I have tried commenting out the redirect and exit code to no avail. I
 have tested the host email capability with this code:

 ?php
 echo mail( 'peter.f...@sbcglobal.net', 'TEST', 'TEST');
 ?

 and it works.

 What am I missing?

What error message do you have?

Best regards.

--
MARCELO DE F. ANDRADE (aka eleKtron)
Belem, PA, Amazonia, Brazil
Linux User #221105

[...@pará ~]# links http://pa.slackwarebrasil.org/

For Libby's backstory be told on Lost
http://www.petitiononline.com/libby423/petition.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: PHP mail() function not working in 1.1.19.6305

2009-02-09 Thread peterhf

 Why not update to 1.2?

This is plan B, the client doesn't want to upgrade at this time.

 What error message do you have?

None! And debug is set to 3.

On Feb 9, 7:10 am, Marcelo Andrade mfandr...@gmail.com wrote:
 On Sun, Feb 8, 2009 at 11:04 PM, peterhf peter.f...@sbcglobal.net wrote:

  This code is not working:

     $result = mail('peter.f...@sbcglobal.net', 'This is a test.',
  'This is a test.', 'From: peter.f...@sbcglobal.net' );

     // Show the login page.
     $this-redirect( '/pages/home' );
     exit();

  If I echo $result, I get a 1.

  I have tried commenting out the redirect and exit code to no avail. I
  have tested the host email capability with this code:

  ?php
  echo mail( 'peter.f...@sbcglobal.net', 'TEST', 'TEST');
  ?

  and it works.

  What am I missing?

 What error message do you have?

 Best regards.

 --
 MARCELO DE F. ANDRADE (aka eleKtron)
 Belem, PA, Amazonia, Brazil
 Linux User #221105

 [...@pará ~]# linkshttp://pa.slackwarebrasil.org/

 For Libby's backstory be told on 
 Losthttp://www.petitiononline.com/libby423/petition.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: PHP mail() function not working in 1.1.19.6305

2009-02-09 Thread Gonzalo Servat
On Mon, Feb 9, 2009 at 2:58 PM, peterhf peter.f...@sbcglobal.net wrote:


  Why not update to 1.2?

 This is plan B, the client doesn't want to upgrade at this time.

  What error message do you have?

 None! And debug is set to 3.


This might actually be related to the sendmail wrapper (provided the mail
function is enabled in php.ini). I had this exact problem just recently on a
cPanel server and after looking the apache log, I found an error message
saying sendmail couldn't be called directly, or something along those lines.
If you *are* running cPanel, you have to turn off the following setting in
exim: Track email origin through X-Source email headers. This setting
causes the sendmail binary to be wrapped by a Perl script which tracks the
email origin before calling the real sendmail binary. If you're not using
cPanel, you might still want to check if the path to sendmail is a wrapper
or a real sendmail (or equivalent) binary. If it is wrapped, try either
changing the path to sendmail in php.ini to the real sendmail binary *or*
renaming the wrapper and placing the real sendmail binary in its place.

Good luck.

- Gonzalo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: PHP mail() function not working in 1.1.19.6305

2009-02-09 Thread peterhf

Thank you all for your consideration and especially you, Gonzalo, for
this solution to my problem. I do not have access to php.ini as it is
on
the hosting server. In addition, as I stated in my original post, a
plain
vanilla PHP file containing a call to the mail function works.

I have decided to address the issue be upgrading to v1.2.1.8004 and
try the Email Component.

Peter -

On Feb 9, 9:11 am, Gonzalo Servat gser...@gmail.com wrote:
 On Mon, Feb 9, 2009 at 2:58 PM, peterhf peter.f...@sbcglobal.net wrote:

   Why not update to 1.2?

  This is plan B, the client doesn't want to upgrade at this time.

   What error message do you have?

  None! And debug is set to 3.

 This might actually be related to the sendmail wrapper (provided the mail
 function is enabled in php.ini). I had this exact problem just recently on a
 cPanel server and after looking the apache log, I found an error message
 saying sendmail couldn't be called directly, or something along those lines.
 If you *are* running cPanel, you have to turn off the following setting in
 exim: Track email origin through X-Source email headers. This setting
 causes the sendmail binary to be wrapped by a Perl script which tracks the
 email origin before calling the real sendmail binary. If you're not using
 cPanel, you might still want to check if the path to sendmail is a wrapper
 or a real sendmail (or equivalent) binary. If it is wrapped, try either
 changing the path to sendmail in php.ini to the real sendmail binary *or*
 renaming the wrapper and placing the real sendmail binary in its place.

 Good luck.

 - Gonzalo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



PHP mail() function not working in 1.1.19.6305

2009-02-08 Thread peterhf

This code is not working:

$result = mail('peter.f...@sbcglobal.net', 'This is a test.',
'This is a test.', 'From: peter.f...@sbcglobal.net' );

// Show the login page.
$this-redirect( '/pages/home' );
exit();

If I echo $result, I get a 1.

I have tried commenting out the redirect and exit code to no avail. I
have tested the host email capability with this code:

?php
echo mail( 'peter.f...@sbcglobal.net', 'TEST', 'TEST');
?

and it works.

What am I missing?

Peter -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: PHP mail() function not working in 1.1.19.6305

2009-02-08 Thread Kyle Decot

Have you tried using the Email Component?

http://api.cakephp.org/class/email-component

On Feb 8, 9:04 pm, peterhf peter.f...@sbcglobal.net wrote:
 This code is not working:

     $result = mail('peter.f...@sbcglobal.net', 'This is a test.',
 'This is a test.', 'From: peter.f...@sbcglobal.net' );

     // Show the login page.
     $this-redirect( '/pages/home' );
     exit();

 If I echo $result, I get a 1.

 I have tried commenting out the redirect and exit code to no avail. I
 have tested the host email capability with this code:

 ?php
 echo mail( 'peter.f...@sbcglobal.net', 'TEST', 'TEST');
 ?

 and it works.

 What am I missing?

 Peter -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: PHP mail() function not working in 1.1.19.6305

2009-02-08 Thread peterhf

I'm using 1.1.19.x, I don't think that the Email Component is
available in this version.

Peter -

On Feb 8, 7:09 pm, Kyle Decot kdec...@gmail.com wrote:
 Have you tried using the Email Component?

 http://api.cakephp.org/class/email-component

 On Feb 8, 9:04 pm, peterhf peter.f...@sbcglobal.net wrote:

  This code is not working:

      $result =mail('peter.f...@sbcglobal.net', 'This is a test.',
  'This is a test.', 'From: peter.f...@sbcglobal.net' );

      // Show the login page.
      $this-redirect( '/pages/home' );
      exit();

  If I echo $result, I get a 1.

  I have tried commenting out the redirect and exit code to no avail. I
  have tested the host email capability with this code:

  ?php
  echomail( 'peter.f...@sbcglobal.net', 'TEST', 'TEST');
  ?

  and it works.

  What am I missing?

  Peter -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---