Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-29 Thread Gmail Support
Hi

  Thanx for your response. But my controller has 4 mail functions but none
of the mails are going in Live server only. Still I try to find a solution.

When a third party guys hitting our url we are sending mail to users. This
is working in my local. But i not used auth component or any authentication
in this controller.
So I thinking that problem regarding that only. So I Plan to copy and move
the email contents to another controller, at the same time i will follow
your things



On Tue, Aug 23, 2011 at 12:13 PM, ShadowCross adri...@jps.net wrote:

 If using the EmailComponent works in other parts of your controller,
 and the code excerpt you provided was just manually entered into
 your original email (the first two lines would have resulted in a
 syntax error as it is written) you can try adding

  $this-Email-return = Mysitename boun...@mysite.com;

 before the call to $this-Email-send().  This will add the
 appropriate mail header to indicate what email address to send
 bounceback emails.  I've had some domains (such as gmail.com) refuse
 emails from my webserver because its a shared host that was at one
 time flagged as a potential spam source.  The bounceback emails are
 normally sent to the FROM address, but it looks like the FROM you are
 using is something like 'no-re...@mysite.com', which probably doesn't
 exist, so any delivery errors (remote mailserver down, remote user has
 exceeded his quota, unknown user, etc.) are being delivered into the
 ether.

 It may also be possible that the receiving email client is routing
 your email to a spam folder. In this case, there will be no bounceback
 email. You could display a message like The email has been sent to
 sam...@gmail.com. Please make sure that no-re...@mysite.com is on
 your list of trusted senders to avoid the mail being sent to your Spam
 folder..  Of course, this will only work if the email is being sent
 as a direct result of the user interacting with your website.

 Note: The fact that $this-Email-send() returns true doesn't mean the
 email was delivered; usually, it will use the PHP mail() function, and
 according to the PHP manual (http://php.net/manual/en/
 function.mail.php):

  Returns TRUE if the mail was successfully accepted for delivery,
 FALSE otherwise.
  It is important to note that just because the mail was accepted for
 delivery, it does NOT mean the mail will actually reach the intended
 destination

 BTW: Is there a reason you are wrapping the $this-Email-send()
 within ob_start()/ob_end_clean() ? Output buffering generally only
 deals with output that is being sent to the client browser, but $this-
 Email-send() and $this-log() shouldn't be sending anything to the
 browser (unless you have Debug  0, in which case you WANT to see the
 debug messages).

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 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


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-29 Thread John Hardy
Can you send an email VIA command line (sendmail or postfix)?


On Aug 29, 2011, at 4:42 AM, Gmail Support wrote:

 Hi 
 
   Thanx for your response. But my controller has 4 mail functions but none of 
 the mails are going in Live server only. Still I try to find a solution.
 
 When a third party guys hitting our url we are sending mail to users. This is 
 working in my local. But i not used auth component or any authentication in 
 this controller.
 So I thinking that problem regarding that only. So I Plan to copy and move 
 the email contents to another controller, at the same time i will follow your 
 things 
 
 
 
 On Tue, Aug 23, 2011 at 12:13 PM, ShadowCross adri...@jps.net wrote:
 If using the EmailComponent works in other parts of your controller,
 and the code excerpt you provided was just manually entered into
 your original email (the first two lines would have resulted in a
 syntax error as it is written) you can try adding
 
  $this-Email-return = Mysitename boun...@mysite.com;
 
 before the call to $this-Email-send().  This will add the
 appropriate mail header to indicate what email address to send
 bounceback emails.  I've had some domains (such as gmail.com) refuse
 emails from my webserver because its a shared host that was at one
 time flagged as a potential spam source.  The bounceback emails are
 normally sent to the FROM address, but it looks like the FROM you are
 using is something like 'no-re...@mysite.com', which probably doesn't
 exist, so any delivery errors (remote mailserver down, remote user has
 exceeded his quota, unknown user, etc.) are being delivered into the
 ether.
 
 It may also be possible that the receiving email client is routing
 your email to a spam folder. In this case, there will be no bounceback
 email. You could display a message like The email has been sent to
 sam...@gmail.com. Please make sure that no-re...@mysite.com is on
 your list of trusted senders to avoid the mail being sent to your Spam
 folder..  Of course, this will only work if the email is being sent
 as a direct result of the user interacting with your website.
 
 Note: The fact that $this-Email-send() returns true doesn't mean the
 email was delivered; usually, it will use the PHP mail() function, and
 according to the PHP manual (http://php.net/manual/en/
 function.mail.php):
 
  Returns TRUE if the mail was successfully accepted for delivery,
 FALSE otherwise.
  It is important to note that just because the mail was accepted for
 delivery, it does NOT mean the mail will actually reach the intended
 destination
 
 BTW: Is there a reason you are wrapping the $this-Email-send()
 within ob_start()/ob_end_clean() ? Output buffering generally only
 deals with output that is being sent to the client browser, but $this-
 Email-send() and $this-log() shouldn't be sending anything to the
 browser (unless you have Debug  0, in which case you WANT to see the
 debug messages).
 
 --
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
 
 
 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
 
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
  
  
 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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-23 Thread ShadowCross
If using the EmailComponent works in other parts of your controller,
and the code excerpt you provided was just manually entered into
your original email (the first two lines would have resulted in a
syntax error as it is written) you can try adding

  $this-Email-return = Mysitename boun...@mysite.com;

before the call to $this-Email-send().  This will add the
appropriate mail header to indicate what email address to send
bounceback emails.  I've had some domains (such as gmail.com) refuse
emails from my webserver because its a shared host that was at one
time flagged as a potential spam source.  The bounceback emails are
normally sent to the FROM address, but it looks like the FROM you are
using is something like 'no-re...@mysite.com', which probably doesn't
exist, so any delivery errors (remote mailserver down, remote user has
exceeded his quota, unknown user, etc.) are being delivered into the
ether.

It may also be possible that the receiving email client is routing
your email to a spam folder. In this case, there will be no bounceback
email. You could display a message like The email has been sent to
sam...@gmail.com. Please make sure that no-re...@mysite.com is on
your list of trusted senders to avoid the mail being sent to your Spam
folder..  Of course, this will only work if the email is being sent
as a direct result of the user interacting with your website.

Note: The fact that $this-Email-send() returns true doesn't mean the
email was delivered; usually, it will use the PHP mail() function, and
according to the PHP manual (http://php.net/manual/en/
function.mail.php):

  Returns TRUE if the mail was successfully accepted for delivery,
FALSE otherwise.
  It is important to note that just because the mail was accepted for
delivery, it does NOT mean the mail will actually reach the intended
destination

BTW: Is there a reason you are wrapping the $this-Email-send()
within ob_start()/ob_end_clean() ? Output buffering generally only
deals with output that is being sent to the client browser, but $this-
Email-send() and $this-log() shouldn't be sending anything to the
browser (unless you have Debug  0, in which case you WANT to see the
debug messages).

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-22 Thread CakePHP.Saint
I using cakephp email component. In my live server $this-Email-
send() return success. but mail is not receiving. what is the
problem?? i need to find whats the error ?

$this-Email-from = Mysitename no-re...@mysite.com;
$this-Email-to   =  sam...@gmail.com
$this-Email-subject  = This is test;
$this-Email-template = 'template_name';
$this-Email-sendAs   = 'html';

ob_start();
if($this-Email-send())
{
   $this-log(' Mail Success');
}
else
{
  $this-log('Something broke in mail');
}
ob_end_clean();

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-22 Thread abhimanyu bv
maybe you have forgot to configure smtp settings in your cakephp.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-22 Thread Gmail Support
no dude... other mail functions from this controller are working fine

On Mon, Aug 22, 2011 at 2:05 PM, abhimanyu bv vmabhi...@gmail.com wrote:

 maybe you have forgot to configure smtp settings in your cakephp.

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 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


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Email Component not working..

2008-02-25 Thread Samuel DeVore

Just to check, are you using cake 1.1 or 1.2 the email component is
only in 1.2 you can check the VERSION.txt file in your cake core or
look in the cake folder and make sure that
libs/controller/components/email.php exists

Sam D

On Sun, Feb 24, 2008 at 6:58 PM, Affinity Skateboards [EMAIL PROTECTED] wrote:

  I am trying to use the email component on my contact page, but when
  trying to add the component in my controller I get:


  Missing Component File

  You are seeing this error because the component file can't be found or
  doesn't exist.

  Notice: If you want to customize this error message, create app/views/
  errors/missing_component_file.thtml.

  Fatal: Create the class below in file : app/controllers/components/
  email.php

  ?php
  class EmailComponent extends Object {
  }
  ?

  this is what my contact_controller looks like:

  ?php

  class ContactController extends AppController {


  var $uses = array('Contact');
  var $components = array(Email);

  // Code here...
  ?

  Is there something I am missing? I thought that the email component
  was a built-in component of cakePHP. Thanks for the help.

  




-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

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



Email Component not working..

2008-02-24 Thread Affinity Skateboards

I am trying to use the email component on my contact page, but when
trying to add the component in my controller I get:


Missing Component File

You are seeing this error because the component file can't be found or
doesn't exist.

Notice: If you want to customize this error message, create app/views/
errors/missing_component_file.thtml.

Fatal: Create the class below in file : app/controllers/components/
email.php

?php
class EmailComponent extends Object {
}
?

this is what my contact_controller looks like:

?php

class ContactController extends AppController {


var $uses = array('Contact');
var $components = array(Email);

// Code here...
?

Is there something I am missing? I thought that the email component
was a built-in component of cakePHP. Thanks for the help.

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



Re: $this-set with email component don't working with php4 (1.2)

2007-03-20 Thread Ámon Tamás

Hi how I see no $this-methods tahing effects in email element, but it 
is only in php4. I must to use the $GLOBALS array for it, but it is very 
ugly.

Ámon Tamás írta:
 Hello,
 
 $this-set not working with email component in php 4. The same code is 
 working in php 5.
 
 If I use
 
 $this-set('code', $id);
 
 I get an error message (with DEBUG,1) the $code not defined.
 


-- 
Ámon Tamás
http://linkfelho.amon.hu


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



Re: $this-set with email component don't working with php4 (1.2)

2007-03-20 Thread Samuel DeVore

you can try $this-Email-Controller-set

it worked for me

Sam D

On 3/20/07, Ámon Tamás [EMAIL PROTECTED] wrote:

 Hi how I see no $this-methods tahing effects in email element, but it
 is only in php4. I must to use the $GLOBALS array for it, but it is very
 ugly.

 Ámon Tamás írta:
  Hello,
 
  $this-set not working with email component in php 4. The same code is
  working in php 5.
 
  If I use
 
  $this-set('code', $id);
 
  I get an error message (with DEBUG,1) the $code not defined.
 


 --
 Ámon Tamás
 http://linkfelho.amon.hu


 



-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

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



$this-set with email component don't working with php4 (1.2)

2007-03-19 Thread Ámon Tamás

Hello,

$this-set not working with email component in php 4. The same code is 
working in php 5.

If I use

$this-set('code', $id);

I get an error message (with DEBUG,1) the $code not defined.

-- 
Ámon Tamás
http://linkfelho.amon.hu


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