Re: email sending

2010-05-09 Thread Narendra Padala
Hi..! , i am  new to cakephp , i found this link for sending emails , i hope
you it will helpful for you

http://edwardawebb.com/web-development/cakephp/simple-email-component-cakephp


On Mon, May 10, 2010 at 4:42 AM, Renato de Freitas Freire <
renat...@gmail.com> wrote:

> i never could get smtp auth with core email component...
> and with phpmailer i did it like a piece of cake...
>
>
> --
> Renato de Freitas Freire
> ren...@morfer.org
>
>
> On Sun, May 9, 2010 at 1:54 PM, Ma'moon  wrote:
>
>> @Renato because the email component from CakePHP is a core component and
>> it fits much better with the framework, plus, whats exactly does phpMailer
>> gives you while Cake's email component doesn't?
>>
>>
>> On Sun, May 9, 2010 at 5:16 PM, Renato de Freitas Freire <
>> renat...@gmail.com> wrote:
>>
>>> Im using phpMailer to send emails with cakephp...
>>> It works really great for me...
>>>
>>> Why dont you try?
>>>
>>> --
>>> Renato de Freitas Freire
>>> ren...@morfer.org
>>>
>>>
>>>
>>> On Sat, May 8, 2010 at 10:13 AM, John Andersen 
>>> wrote:
>>>
 Or use your Gmail as your mail account in a smtp setup.
 See http://book.cakephp.org/view/176/Email for understanding of the
 Email component.
 Enjoy,
   John

 On May 8, 4:10 pm, "Ma'moon"  wrote:
 > Yes, you need to install an MTA in order to send emails from your
 server
 >
 [snip]

 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: email sending

2010-05-09 Thread Renato de Freitas Freire
i never could get smtp auth with core email component...
and with phpmailer i did it like a piece of cake...


--
Renato de Freitas Freire
ren...@morfer.org


On Sun, May 9, 2010 at 1:54 PM, Ma'moon  wrote:

> @Renato because the email component from CakePHP is a core component and it
> fits much better with the framework, plus, whats exactly does phpMailer
> gives you while Cake's email component doesn't?
>
>
> On Sun, May 9, 2010 at 5:16 PM, Renato de Freitas Freire <
> renat...@gmail.com> wrote:
>
>> Im using phpMailer to send emails with cakephp...
>> It works really great for me...
>>
>> Why dont you try?
>>
>> --
>> Renato de Freitas Freire
>> ren...@morfer.org
>>
>>
>>
>> On Sat, May 8, 2010 at 10:13 AM, John Andersen 
>> wrote:
>>
>>> Or use your Gmail as your mail account in a smtp setup.
>>> See http://book.cakephp.org/view/176/Email for understanding of the
>>> Email component.
>>> Enjoy,
>>>   John
>>>
>>> On May 8, 4:10 pm, "Ma'moon"  wrote:
>>> > Yes, you need to install an MTA in order to send emails from your
>>> server
>>> >
>>> [snip]
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: email sending

2010-05-09 Thread Ma'moon
@Renato because the email component from CakePHP is a core component and it
fits much better with the framework, plus, whats exactly does phpMailer
gives you while Cake's email component doesn't?

On Sun, May 9, 2010 at 5:16 PM, Renato de Freitas Freire  wrote:

> Im using phpMailer to send emails with cakephp...
> It works really great for me...
>
> Why dont you try?
>
> --
> Renato de Freitas Freire
> ren...@morfer.org
>
>
>
> On Sat, May 8, 2010 at 10:13 AM, John Andersen wrote:
>
>> Or use your Gmail as your mail account in a smtp setup.
>> See http://book.cakephp.org/view/176/Email for understanding of the
>> Email component.
>> Enjoy,
>>   John
>>
>> On May 8, 4:10 pm, "Ma'moon"  wrote:
>> > Yes, you need to install an MTA in order to send emails from your server
>> >
>> [snip]
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: email sending

2010-05-09 Thread Renato de Freitas Freire
Im using phpMailer to send emails with cakephp...
It works really great for me...

Why dont you try?

--
Renato de Freitas Freire
ren...@morfer.org


On Sat, May 8, 2010 at 10:13 AM, John Andersen wrote:

> Or use your Gmail as your mail account in a smtp setup.
> See http://book.cakephp.org/view/176/Email for understanding of the
> Email component.
> Enjoy,
>   John
>
> On May 8, 4:10 pm, "Ma'moon"  wrote:
> > Yes, you need to install an MTA in order to send emails from your server
> >
> [snip]
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: email sending

2010-05-08 Thread John Andersen
Or use your Gmail as your mail account in a smtp setup.
See http://book.cakephp.org/view/176/Email for understanding of the
Email component.
Enjoy,
   John

On May 8, 4:10 pm, "Ma'moon"  wrote:
> Yes, you need to install an MTA in order to send emails from your server
>
[snip]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: email sending

2010-05-08 Thread Ma'moon
Yes, you need to install an MTA in order to send emails from your server

On Sat, May 8, 2010 at 8:54 AM, MANOJ DHAMAL wrote:

> no i not installed any MTA. Is it neccessary?
>
> On May 8, 5:45 pm, "Ma'moon"  wrote:
> > Do you have any MTA installed in your server?
> >
> > On Sat, May 8, 2010 at 8:36 AM, MANOJ DHAMAL  >wrote:
> >
> >
> >
> > > I have to send email to user when he/she completes registration.
> >
> > > i have used component in controller like
> >
> > > var $components = array('Email');
> >
> > > i am using function call  for sending mail like
> >
> > > $this->sendNewUserMail();
> >
> > > And funcion is as,
> >
> > > function sendNewUserMail(){
> >
> > > $this->Email->to  = 'manoj.dham...@gmail.com';
> > > $this->Email->subject = 'Test';
> > > $this->Email->send('Hello Hi MANOJ!');
> >
> > >}
> >
> > > when i perform registration, it completes successfilly but i didn't
> > > get any message at manoj.dham...@gmail.com
> >
> > > Control reaches successfully at funcion and executes the function but
> > > it not send any mail.
> > > WHY?
> > > Plz give me any solution.
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others
> > > with their CakePHP related questions.
> >
> > > 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
> >
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> with their CakePHP related questions.
> >
> > 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.comFor
> >  more options, visit this group athttp://
> groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: email sending

2010-05-08 Thread MANOJ DHAMAL
no i not installed any MTA. Is it neccessary?

On May 8, 5:45 pm, "Ma'moon"  wrote:
> Do you have any MTA installed in your server?
>
> On Sat, May 8, 2010 at 8:36 AM, MANOJ DHAMAL wrote:
>
>
>
> > I have to send email to user when he/she completes registration.
>
> > i have used component in controller like
>
> > var $components = array('Email');
>
> > i am using function call  for sending mail like
>
> > $this->sendNewUserMail();
>
> > And funcion is as,
>
> > function sendNewUserMail(){
>
> >     $this->Email->to      = 'manoj.dham...@gmail.com';
> >     $this->Email->subject = 'Test';
> >     $this->Email->send('Hello Hi MANOJ!');
>
> >        }
>
> > when i perform registration, it completes successfilly but i didn't
> > get any message at manoj.dham...@gmail.com
>
> > Control reaches successfully at funcion and executes the function but
> > it not send any mail.
> > WHY?
> > Plz give me any solution.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: email sending

2010-05-08 Thread Ma'moon
Do you have any MTA installed in your server?

On Sat, May 8, 2010 at 8:36 AM, MANOJ DHAMAL wrote:

> I have to send email to user when he/she completes registration.
>
> i have used component in controller like
>
> var $components = array('Email');
>
> i am using function call  for sending mail like
>
> $this->sendNewUserMail();
>
> And funcion is as,
>
> function sendNewUserMail(){
>
> $this->Email->to  = 'manoj.dham...@gmail.com';
> $this->Email->subject = 'Test';
> $this->Email->send('Hello Hi MANOJ!');
>
>}
>
> when i perform registration, it completes successfilly but i didn't
> get any message at manoj.dham...@gmail.com
>
> Control reaches successfully at funcion and executes the function but
> it not send any mail.
> WHY?
> Plz give me any solution.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


email sending

2010-05-08 Thread MANOJ DHAMAL
I have to send email to user when he/she completes registration.

i have used component in controller like

var $components = array('Email');

i am using function call  for sending mail like

$this->sendNewUserMail();

And funcion is as,

function sendNewUserMail(){

 $this->Email->to  = 'manoj.dham...@gmail.com';
 $this->Email->subject = 'Test';
 $this->Email->send('Hello Hi MANOJ!');

}

when i perform registration, it completes successfilly but i didn't
get any message at manoj.dham...@gmail.com

Control reaches successfully at funcion and executes the function but
it not send any mail.
WHY?
Plz give me any solution.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Weird email-sending problem: sometimes emails are not send with same recipient!?

2009-07-15 Thread DigitalDude

There are two mistakes in my code, there should be

this->Client->saveField('shop_mail', 1);

after sending the 2nd email, and

this->Client->saveField('client_mail', 1);

after sending the 3rd email!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Weird email-sending problem: sometimes emails are not send with same recipient!?

2009-07-15 Thread DigitalDude

Hey,

I'm having an issue that is really weird and I don't know how to solve
it myself, so I hope someone here has an explanation for this and can
help me out...

Situation:
In my controller I send 3 seperate Emails, to different recipients and
with different reply-adresses, and on my dev-server everything seems
to work fine. Seems to because I can only test with email-adresses
from GMX, googlemail and one other.

This is the part of the email-sening in my controller:
-
$this->Email->reset();
$this->Email->to = Configure::read
('Email.reservation_to_email');
$this->Email->charset = 'utf-8';
$this->Email->subject = 'Booking #'.$booking['Booking']
['transaction_id'];
$this->Email->replyTo = Configure::read
('Email.reservation_to_email');
$this->Email->from = Configure::read
('Email.reservation_from_name').' <'.Configure::read
('Email.reservation_from_email').'>';
$this->Email->template = 'booking';
$this->Email->sendAs = 'both';
$this->set(compact('booking', 'titles', 'scooters', 'extras',
'age', 'nettosum', 'vatsum', 'totalsum', 'shop'));
if ($this->Email->send()) {
$this->Client->id = $booking[Client']['id'];
$this->Client->saveField('master_mail', 1);
}

$this->Email->reset();
$this->Email->to = $booking['Shop']['email'];
$this->Email->charset = 'utf-8';
$this->Email->subject = 'Booking #'.$booking['Booking']
['transaction_id'];
$this->Email->replyTo = $booking['Client']['email'];
$this->Email->from = $booking['Client']['email'].' <'.$booking
['Client']['email'].'>';
$this->Email->template = 'booking';
$this->Email->sendAs = 'both';
$this->set(compact('booking', 'titles', 'scooters', 'extras',
'age', 'nettosum', 'vatsum', 'totalsum', 'shop'));
if ($this->Email->send()) {
$this->Client->id = $booking[Client']['id'];
$this->Client->saveField('master_mail', 1);
}

$this->Email->reset();
$this->Email->to = $booking['Client']['email'];
$this->Email->charset = 'utf-8';
$this->Email->subject = __('Booking Confirmation',
true).' ('.__('Booking', true).' #'.$booking['Booking']
['transaction_id'].')';
$this->Email->replyTo = $booking['Shop']['email'];
$this->Email->from = $booking['Shop']['name'].' <'.$booking
['Shop']['email'].'>';
$this->Email->template = 'booking';
$this->Email->sendAs = 'both';
$this->set(compact('booking', 'titles', 'scooters', 'extras',
'age', 'nettosum', 'vatsum', 'totalsum', 'shop'));
if ($this->Email->send()) {
$this->Client->id = $booking[Client']['id'];
$this->Client->saveField('master_mail', 1);
}

On my dev-Server everything works finde; on my production server it
seems not even $this->Email->send() is returned true, because the
fields of my databse which should be 1 for all three fields, are left
at 0, even though the email is actually send!

And the weirdest of all problems is, the first email-adress is
everytime the same, but not every email is sent to this adress!

How can that be?

Do I have to put the "to" part of the email in "<" and ">" or what am
I missing here?!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---