Re: Email Component, cc and bcc not working?

2012-11-20 Thread Ben Thrum
Hi, A long time has passed, but can you show me more code?

I cant get this working.

Ben

On Wednesday, May 13, 2009 2:37:31 PM UTC+10, Louie Miranda wrote:

 It worked! thanks a lot.

 $ccArray = array('lmir...@example.com javascript:', 
 'us...@example.comjavascript:
 ');
 --
 Louie Miranda (lmir...@gmail.com javascript:)
 http://www.louiemiranda.net 

 Quality Web Hosting - www.axishift.com 
 Pinoy Web Hosting, Web Hosting Philippines


 On Wed, May 13, 2009 at 12:17 PM, Graham Weldon 
 gra...@grahamweldon.comjavascript:
  wrote:

  Hi Louie,

 I believe the cc and bcc variables need to be arrays.
 Try wrapping them in an array and see how that goes for you.

 Cheers,
 Graham Weldon
 http://grahamweldon.com 






 Louie Miranda wrote: 

 Hi, I have setup the email component properly on cakephp. I can send and 
 it's ok for both html and text.

 I tried adding the cc and bcc option, however. It seems to be not working.
 http://api.cakephp.org/class/email-component 

 $this-Email-to = 'us...@example.com javascript:, 
 lmir...@example.comjavascript:
 ';
 $this-Email-cc = 'us...@example.com javascript:';
 $this-Email-bcc = 'bcc...@example.com javascript:';

 I am using CakePHP...

 cat VERSION.txt

 ///
 // 
 +---+
  
 //
 // + $Id: VERSION.txt 7962 2008-12-25 23:30:33Z gwoo $
 // + Last Modified: $Date: 2008-12-25 17:30:33 -0600 (Thu, 25 Dec 2008) $
 // + Modified By: $LastChangedBy: gwoo $
 // 
 +---+
  
 //

 ///

 *1.2.0.7962*

 any ideas?
 --
 Louie Miranda (lmir...@gmail.com javascript:)
 http://www.louiemiranda.net 

 Quality Web Hosting - www.axishift.com 
 Pinoy Web Hosting, Web Hosting Philippines


  

  



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

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




Re: Email component working wrong

2011-09-11 Thread euromark
are you sure that the username is actually an email address?
or did you wanna write $User['User']['email'] ?

On 9 Sep., 16:48, Piotr Chabros pchabros.p...@gmail.com wrote:
 Hello,

 I have a function sending email to all the users, and every email sent
 is copied to another email address too:

 [CODE HERE]
 $this-Email-to = $User['User']['username'];
 $this-Email-bcc = array('b...@hotmail.co.uk');
 [CODE HERE]

 The thing is the email sent to the user is different than the copy. I
 have no idea why it happens, the commands are one under another as
 shown.

 Please help,
 Peter.

-- 
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 working wrong

2011-09-11 Thread WebbedIT
Duplicate thread: http://groups.google.com/group/cake-php/t/a749cc9e6c8f2869

On Sep 11, 9:18 am, euromark dereurom...@googlemail.com wrote:
 are you sure that the username is actually an email address?
 or did you wanna write $User['User']['email'] ?

 On 9 Sep., 16:48, Piotr Chabros pchabros.p...@gmail.com wrote:







  Hello,

  I have a function sending email to all the users, and every email sent
  is copied to another email address too:

  [CODE HERE]
  $this-Email-to = $User['User']['username'];
  $this-Email-bcc = array('b...@hotmail.co.uk');
  [CODE HERE]

  The thing is the email sent to the user is different than the copy. I
  have no idea why it happens, the commands are one under another as
  shown.

  Please help,
  Peter.

-- 
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 working wrong

2011-09-11 Thread Piotr Chabros
Yes I am sure that the 'username' is the email. Sorry for the double
post.

On Sep 11, 10:18 am, euromark dereurom...@googlemail.com wrote:
 are you sure that the username is actually an email address?
 or did you wanna write $User['User']['email'] ?

 On 9 Sep., 16:48, Piotr Chabros pchabros.p...@gmail.com wrote:







  Hello,

  I have a function sending email to all the users, and every email sent
  is copied to another email address too:

  [CODE HERE]
  $this-Email-to = $User['User']['username'];
  $this-Email-bcc = array('b...@hotmail.co.uk');
  [CODE HERE]

  The thing is the email sent to the user is different than the copy. I
  have no idea why it happens, the commands are one under another as
  shown.

  Please help,
  Peter.

-- 
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 and special chars

2010-08-31 Thread euromark
like
$this-Email-to = $username . '' . $email '';

i thought i can put whatever i want in $username here
and it works in outlook etc. the email gets through
only the email component aborts...
maybe a bug?


On 1 Sep., 00:05, euromark dereurom...@googlemail.com wrote:
 i just stumpled on that after checking the error logs
 seems it only happens occasionally

 if a username contains some char like  @ [ etc
 the email will not be send to $username $email
 it aborts without any error at all

 is this from smtp protocol?
 or does the component do that?
 what chars are expicitly not allowed in the name part?

 i though about using Inflector::slug() on the username prior to
 passing in to the email component
 but that would change all äöüé etc (which are valid) as well

 any ideas?

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 component and special chars

2010-08-31 Thread euromark
like
$this-Email-to = $username .'' . $email .'';

works with outlook smtp etc
but the email component aborts with any non a-z chars...
maybe a bug?



On 1 Sep., 00:05, euromark dereurom...@googlemail.com wrote:
 i just stumpled on that after checking the error logs
 seems it only happens occasionally

 if a username contains some char like  @ [ etc
 the email will not be send to $username $email
 it aborts without any error at all

 is this from smtp protocol?
 or does the component do that?
 what chars are expicitly not allowed in the name part?

 i though about using Inflector::slug() on the username prior to
 passing in to the email component
 but that would change all äöüé etc (which are valid) as well

 any ideas?

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 Component

2010-07-30 Thread cricket
On Thu, Jul 29, 2010 at 10:09 AM, AD7six andydawso...@gmail.com wrote:

 and no the
 ones in views/email directory

 where did you read it would look in views/email?

Perhaps huoxito meant views/layouts/email/

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 Component

2010-07-29 Thread Louie Miranda
Try this..

class AccountsController extends AppController
{
var $name = Accounts;
var $components = array('Email');

function email() {
$this-Email-from= 'Somebody someb...@example.com';
$this-Email-to  = 'Louie Miranda louiemira...@example.com';
$this-Email-subject = 'Test / Developer Code PHP CAKEPHP';
$this-Email-send('Hello message body from LOUIE MIRANDA
CAKEPHP!');
}

}

It's actually very simple. Just add the email component and create a
function.

--
Louie Miranda
 - Email: lmira...@gmail.com
 - Web: http://www.louiemiranda.com



On Thu, Jul 29, 2010 at 10:41 AM, huoxito huox...@gmail.com wrote:

 Am I the only one who finds the Email Component doc,
 http://book.cakephp.org/view/1286/Sending-a-basic-message, really
 weird?

 I mean i'll have to try out a lot of things here to understand how it
 works...

 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.comcake-php%2bunsubscr...@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 Component

2010-07-29 Thread huoxito
Yes i got that, but what i found strange is that the cakebook says we
have to create 'html' and 'text' in both views and elements
directory

besides why would i use both 'text' and 'html' if one of them is
enough to customize my emails...

and when we set the template using the Email Component it seems to
refer to the files in the views/elements/email directory and no the
ones in views/email directory




On 29 jul, 04:13, Louie Miranda lmira...@gmail.com wrote:
 Try this..

 class AccountsController extends AppController
 {
     var $name = Accounts;
     var $components = array('Email');

     function email() {
         $this-Email-from    = 'Somebody someb...@example.com';
         $this-Email-to      = 'Louie Miranda louiemira...@example.com';
         $this-Email-subject = 'Test / Developer Code PHP CAKEPHP';
         $this-Email-send('Hello message body from LOUIE MIRANDA
 CAKEPHP!');
     }

 }

 It's actually very simple. Just add the email component and create a
 function.

 --
 Louie Miranda
  - Email: lmira...@gmail.com
  - Web:http://www.louiemiranda.com



 On Thu, Jul 29, 2010 at 10:41 AM, huoxito huox...@gmail.com wrote:
  Am I the only one who finds the Email Component doc,
 http://book.cakephp.org/view/1286/Sending-a-basic-message, really
  weird?

  I mean i'll have to try out a lot of things here to understand how it
  works...

  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.comcake-php%2bunsubscr...@googlegroups.c­omFor
   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 Component

2010-07-29 Thread AD7six


On Jul 29, 3:25 pm, huoxito huox...@gmail.com wrote:
 Yes i got that, but what i found strange is that the cakebook says we
 have to create 'html' and 'text' in both views and elements
 directory

Where does it say that ( I think you're misreading something ).


 besides why would i use both 'text' and 'html' if one of them is
 enough to customize my emails...

If you plan on sending out text-only emails that's a fair argument. if
you're thinking of sending out html-only emails well ...


 and when we set the template using the Email Component it seems to
 refer to the files in the views/elements/email directory

Exactly like it says on the tin (in the book) :)

 and no the
 ones in views/email directory

where did you read it would look in views/email?

rgds,

AD

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 Component

2010-07-21 Thread Jeremy Burns | Class Outfit
Have you tried clearing the cache (/app/tmp/cache/...and sub folders)?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 21 Jul 2010, at 03:06, Hugo M wrote:

 Mm... if you have Linux you can check in /etc/php5/apache2/php.ini the 
 sendmail configuration and the sendmail path. Maybe is put as a relative path 
 (I don't see a good reason to do that but... who knows :P)
 
 2010/7/20 Ed Propsner crotchf...@gmail.com
 Nope, nothing. I originally used it right out of the box and I didn't have to 
 change a thing. 
 
 It was working perfectly until I changed to a new dir on my server. It really 
 makes no sense. 
 
 
 On Tue, Jul 20, 2010 at 8:49 PM, Hugo M ham1...@gmail.com wrote:
 Strange, do you have any configuration related with Email component? if I can 
 send mail with mail() I can send with the component :S
 
 2010/7/20 Ed Propsner crotchf...@gmail.com
 I recently changed names on one of my sites and moved the entire site to a 
 different dir on the server. 
 
 Everything went smooth enough except now I'm unable to send emails. 
 Mail sends ok using  PHP mail() function but not when using the email 
 component. 
 The email is NOT set up for SMTP.
 
 Am I overlooking something here? I'm not sure what the problem is.   
 
 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
 
 
 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
 
 
 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
 
 
 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

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 Component

2010-07-21 Thread Ed Propsner
I played around a little more and found a few things online that got me
pointed in the right direction however things still aren't working
correctly.

$this-email-from = 'Some Name SomeSite.com'   // email does not send at
all
$this-email-from = 'Some Name somesite.com' (email all lowercase) //
ignores both email and name and sends using server address
$this-email-from = 'Some Name' // sends okay but is obviously missing the
email address



On Tue, Jul 20, 2010 at 5:36 PM, Ed Propsner crotchf...@gmail.com wrote:

 I recently changed names on one of my sites and moved the entire site to a
 different dir on the server.

 Everything went smooth enough except now I'm unable to send emails.
 Mail sends ok using  PHP mail() function but not when using the email
 component.
 The email is NOT set up for SMTP.

 Am I overlooking something here? I'm not sure what the problem is.


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 Component

2010-07-20 Thread Hugo M
Strange, do you have any configuration related with Email component? if I
can send mail with mail() I can send with the component :S

2010/7/20 Ed Propsner crotchf...@gmail.com

 I recently changed names on one of my sites and moved the entire site to a
 different dir on the server.

 Everything went smooth enough except now I'm unable to send emails.
 Mail sends ok using  PHP mail() function but not when using the email
 component.
 The email is NOT set up for SMTP.

 Am I overlooking something here? I'm not sure what the problem is.

 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.comcake-php%2bunsubscr...@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 Component

2010-07-20 Thread Ed Propsner
Nope, nothing. I originally used it right out of the box and I didn't have
to change a thing.

It was working perfectly until I changed to a new dir on my server. It
really makes no sense.

On Tue, Jul 20, 2010 at 8:49 PM, Hugo M ham1...@gmail.com wrote:

 Strange, do you have any configuration related with Email component? if I
 can send mail with mail() I can send with the component :S

 2010/7/20 Ed Propsner crotchf...@gmail.com

 I recently changed names on one of my sites and moved the entire site to a
 different dir on the server.

 Everything went smooth enough except now I'm unable to send emails.
 Mail sends ok using  PHP mail() function but not when using the email
 component.
 The email is NOT set up for SMTP.

 Am I overlooking something here? I'm not sure what the problem is.

 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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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 Component

2010-07-20 Thread Hugo M
Mm... if you have Linux you can check in /etc/php5/apache2/php.ini the
sendmail configuration and the sendmail path. Maybe is put as a relative
path (I don't see a good reason to do that but... who knows :P)

2010/7/20 Ed Propsner crotchf...@gmail.com

 Nope, nothing. I originally used it right out of the box and I didn't have
 to change a thing.

 It was working perfectly until I changed to a new dir on my server. It
 really makes no sense.


 On Tue, Jul 20, 2010 at 8:49 PM, Hugo M ham1...@gmail.com wrote:

 Strange, do you have any configuration related with Email component? if I
 can send mail with mail() I can send with the component :S

 2010/7/20 Ed Propsner crotchf...@gmail.com

 I recently changed names on one of my sites and moved the entire site to
 a different dir on the server.

 Everything went smooth enough except now I'm unable to send emails.
 Mail sends ok using  PHP mail() function but not when using the email
 component.
 The email is NOT set up for SMTP.

 Am I overlooking something here? I'm not sure what the problem is.

 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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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 Component - Double Send

2010-06-18 Thread John Andersen
Have you confirmed that your data are correct? That is, that you don't
have the same email address twice in the $mail array that you use!
You could for example log each email address that your are sending an
email to.
Enjoy,
   John

On Jun 17, 10:30 pm, alex gen...@gmail.com wrote:
 Hi, I have used this component with this following snippet code:

                         foreach( $list as $mail ){
                             $this-Email-subject = 'HermesList';
                             $this-Email-replyTo = 'i...@alex.it';
                             $this-Email-from = 'Alex i...@alex.it';
                                 $this-Email-to = $mail['mails']['mail'];

                                 $this-Email-delivery = 'smtp';
                                 $this-Email-template = 
 'email/html/Template/template';
                                 $this-Email-sendAs = 'html';
                                 $this-set('titolo', 
 $data['Content']['titolo']);
                                 $this-set('descrizione', 
 $data['Content']['descrizione']);
                                 $this-set('mail', $mail['mails']['mail']);
                                 $this-set('image', $data['Content']['link']);
                                 $this-Email-send();
                                 $this-Email-reset();
                         }

 It works fine but some emails are sent twice!!!
 Thanks

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 component

2010-06-17 Thread Marcelo F Andrade
On Wed, Jun 16, 2010 at 2:19 PM, Daniel daniel.g...@gmail.com wrote:
 (..)
 but when i include in my controller a config.php file:
 ?php
 define('EMAIL', 'exam...@domain.com');
 ?

 and try to use EMAIL to set the destination, it doesn't work :-(.

Not sure, but maybe you should try this:

!defined('EMAIL')  define('EMAIL', 'exam...@domain.com');

Or even define constants in your bootstrap.php.

Atts.

-- 
MARCELO F ANDRADE
Belem, Amazonia, Brazil

I took the red pill

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 component

2010-06-17 Thread John Andersen
It looks like I have the same setup as you have, an email in a
variable and a default email as a constant.
My code is like this:
[code]
define('DEFAULT_TO_ADDRESS','ad...@somewhere.eu');
...
$this-Email-to = (APPLICATION_STATE == APPLICATION_STATE_PROD) ? ''.
$emailAddress.'' : DEFAULT_TO_ADDRESS;
[/code]

What happens in my code is that I check for whether or not I am in a
production environment. If I am, then I use the email in the variable,
else the email in the constant.

This works for me, so take a look at your code, make whatever changes
are necessary and try again. Observe that I encloses my email
addresses in  and .
Then tell us about it! :)
Enjoy,
   John


On Jun 16, 8:19 pm, Daniel daniel.g...@gmail.com wrote:
 my bad, that's working:
 $to =  'exampleem...@domain.com';
 $this-Email-to = $to;

 ..typo mistake.

 but when i include in my controller a config.php file:
 ?php
 define('EMAIL', 'exam...@domain.com');
 ?

 and try to use EMAIL to set the destination, it doesn't work :-(.
 i have tried to set a $email variable with EMAIL and print it out in
 view,
 it shows the correct adddress, but when i use the EMAIL to set the
 destination address for Email componnent it doesn't work.

[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 component

2010-06-16 Thread Dilip Godhani
Hello
Use this
its work may ne

$to =  'exampleem...@domain.com';
$this-Email-to = $to;


Best luck
BYe BYe

On Wed, Jun 16, 2010 at 12:25 AM, Daniel Gbur daniel.g...@gmail.com wrote:

 hi all,

 i have a problem with Email compnent.
 when i set the destination adress with a string:

 $this-Email-to = 'exampleem...@domain.com';

 it's working ok, but when i try to set the destination adress with a
 variable:

 $to =  'exampleem...@domain.com';
 $this-Email-to = $to;

 it doesn't work.

 i can't find the reason why it's not working.
 maybe someone have any idea?

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




-- 
Dilip Godhani
Jr Software Developer, Entourage Solutions
e-mail: di...@entouragesolutions.com
  dilip.godh...@gmail.com
Web.: www.entouragesolutions.com
m. 9913822582

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 Component and Model

2010-06-16 Thread jodator
I had the same issue ;) Fastest: rename model or component.

Or you could try use email model in controller like this (I havn't
tested it before):

$uses = array('MyOtherModel');

...
function mail_me($id) {
$emailModel = ClassRegistry::init('Model');
$emailField = $emailModel-find('email', array('id' = 666) );

// or

$emailField = ClassRegistry::init('Model')-find('email', array('id'
= 666) );

$this-email-to = emailField;

//I don't know how to dinamically load components

}


On Jun 16, 1:20 pm, Andrei Mita andrei.m...@gmail.com wrote:
 Hello,

 I have a model Email that conflicts with the component when I try to send
 emails. I have researched the group and saw that other people had the same
 issue but did not find a solution. Is there a standard way to deal with the
 problem or do I have to rename my model, controller and view folder?

 Thanks,
 Andrei

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 Component and Model

2010-06-16 Thread Andrei Mita
How can I rename the E-mail component?


On Wed, Jun 16, 2010 at 3:26 PM, jodator joda...@gmail.com wrote:

 I had the same issue ;) Fastest: rename model or component.

 Or you could try use email model in controller like this (I havn't
 tested it before):

 $uses = array('MyOtherModel');

 ...
 function mail_me($id) {
 $emailModel = ClassRegistry::init('Model');
 $emailField = $emailModel-find('email', array('id' = 666) );

 // or

 $emailField = ClassRegistry::init('Model')-find('email', array('id'
 = 666) );

 $this-email-to = emailField;

 //I don't know how to dinamically load components

 }


 On Jun 16, 1:20 pm, Andrei Mita andrei.m...@gmail.com wrote:
  Hello,
 
  I have a model Email that conflicts with the component when I try to send
  emails. I have researched the group and saw that other people had the
 same
  issue but did not find a solution. Is there a standard way to deal with
 the
  problem or do I have to rename my model, controller and view folder?
 
  Thanks,
  Andrei

 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.comcake-php%2bunsubscr...@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 Component and Model

2010-06-16 Thread Dr. Loboto
Your should rename model.

On Jun 16, 7:39 pm, Andrei Mita andrei.m...@gmail.com wrote:
 How can I rename the E-mail component?



 On Wed, Jun 16, 2010 at 3:26 PM, jodator joda...@gmail.com wrote:
  I had the same issue ;) Fastest: rename model or component.

  Or you could try use email model in controller like this (I havn't
  tested it before):

  $uses = array('MyOtherModel');

  ...
  function mail_me($id) {
  $emailModel = ClassRegistry::init('Model');
  $emailField = $emailModel-find('email', array('id' = 666) );

  // or

  $emailField = ClassRegistry::init('Model')-find('email', array('id'
  = 666) );

  $this-email-to = emailField;

  //I don't know how to dinamically load components

  }

  On Jun 16, 1:20 pm, Andrei Mita andrei.m...@gmail.com wrote:
   Hello,

   I have a model Email that conflicts with the component when I try to send
   emails. I have researched the group and saw that other people had the
  same
   issue but did not find a solution. Is there a standard way to deal with
  the
   problem or do I have to rename my model, controller and view folder?

   Thanks,
   Andrei

  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.comcake-php%2bunsubscr...@googlegroups.c 
  omFor 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 Component and Model

2010-06-16 Thread Andrei Mita
Thanks. Will do.


On Wed, Jun 16, 2010 at 5:21 PM, Dr. Loboto drlob...@gmail.com wrote:

 Your should rename model.

 On Jun 16, 7:39 pm, Andrei Mita andrei.m...@gmail.com wrote:
  How can I rename the E-mail component?
 
 
 
  On Wed, Jun 16, 2010 at 3:26 PM, jodator joda...@gmail.com wrote:
   I had the same issue ;) Fastest: rename model or component.
 
   Or you could try use email model in controller like this (I havn't
   tested it before):
 
   $uses = array('MyOtherModel');
 
   ...
   function mail_me($id) {
   $emailModel = ClassRegistry::init('Model');
   $emailField = $emailModel-find('email', array('id' = 666) );
 
   // or
 
   $emailField = ClassRegistry::init('Model')-find('email', array('id'
   = 666) );
 
   $this-email-to = emailField;
 
   //I don't know how to dinamically load components
 
   }
 
   On Jun 16, 1:20 pm, Andrei Mita andrei.m...@gmail.com wrote:
Hello,
 
I have a model Email that conflicts with the component when I try to
 send
emails. I have researched the group and saw that other people had the
   same
issue but did not find a solution. Is there a standard way to deal
 with
   the
problem or do I have to rename my model, controller and view folder?
 
Thanks,
Andrei
 
   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.comcake-php%2bunsubscr...@googlegroups.com
 cake-php%2bunsubscr...@googlegroups.c omFor 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.comcake-php%2bunsubscr...@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 component

2010-06-16 Thread Daniel
my bad, that's working:
$to =  'exampleem...@domain.com';
$this-Email-to = $to;

..typo mistake.

but when i include in my controller a config.php file:
?php
define('EMAIL', 'exam...@domain.com');
?

and try to use EMAIL to set the destination, it doesn't work :-(.
i have tried to set a $email variable with EMAIL and print it out in
view,
it shows the correct adddress, but when i use the EMAIL to set the
destination address for Email componnent it doesn't work.


On 16 Cze, 12:59, Dilip Godhani dilip.godh...@gmail.com wrote:
 Hello
 Use this
 its work may ne

 $to =  'exampleem...@domain.com';
 $this-Email-to = $to;

 Best luck
 BYe BYe





 On Wed, Jun 16, 2010 at 12:25 AM, Daniel Gbur daniel.g...@gmail.com wrote:
  hi all,

  i have a problem with Email compnent.
  when i set the destination adress with a string:

  $this-Email-to = 'exampleem...@domain.com';

  it's working ok, but when i try to set the destination adress with a
  variable:

  $to =  'exampleem...@domain.com';
  $this-Email-to = $to;

  it doesn't work.

  i can't find the reason why it's not working.
  maybe someone have any idea?

  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.comcake-php%2bunsubscr...@googlegroups.c­omFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 --
 Dilip Godhani
 Jr Software Developer, Entourage Solutions
 e-mail: di...@entouragesolutions.com
           dilip.godh...@gmail.com
 Web.:www.entouragesolutions.com
 m. 9913822582

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 component - sending mail via smtp fails on own server!

2010-06-04 Thread Jonathon Musters
I would suspect that or php/apche may need to be rebuilt to include mail



On 6/3/10, euromark dereurom...@googlemail.com wrote:
 as i mentioned above, php mails via mail() are working both cake and
 pure php based

 using my good old phpmailer from the days before cake i get a
 similar error
 with
  $mail-SMTPAuth = true;
 and
  $mail-IsSMTP();
 like this:

 SMTP - ERROR: Failed to connect to server: Invalid argument (22)
 SMTP Error: Could not connect to SMTP host. (bool)FALSE


 if i dont use $mail-IsSMTP(); the email gets successfully sent (via
 mail() - which of course works)

 it might actually be something connected to the smtp server...



 On 4 Jun., 00:01, Jonathon Musters luvz2...@gmail.com wrote:
 Try a simple test

 Using php only not cake.  Try sending an email
 If it works cake issue if not server config

 Let us know
 Jonathon

 On 6/3/10, euromark dereurom...@googlemail.com wrote:

  i have quite a strange problem with the email component
  it never failed me before

  but on the new server i installed an own exim4 mail server with imap/
  pop/smtp
  well,
  - sending mails wie mail() works,
  - sending mails via smtp from outside (like thunderbird email program)
  works
  - sending mails wie cake email component to myself (own domain) works
  as well

  but
  - sending mails to other providers (gmx, web, ...) always returns
  FALSE
  i debugged it and found out after getting 503, it does authenticate
  (line 816 ff):
    $authRequired = $this-_smtpSend('AUTH LOGIN', '334|503');

  the next statement returns 250 (line 829 ff) - thats fine too:
   if (!$this-_smtpSend('MAIL FROM: ' . $this-_formatAddress($this-
 from, true))) {

  but the next one fails (if its a foreign domain) (line 839 ff):
    if (!$this-_smtpSend('RCPT TO: ' . $this-_formatAddress($to,
  true))) {

  it just returns an empty string (which of course results in return
  false)

  the foreign email addresses are valid and this is my exim4 error log:

  2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102]
  F=kont...@domain.de rejected RCPT n...@foreigndomain.de: relay not
  permitted
  2010-06-03 22:45:10 unexpected disconnection while reading SMTP
  command from my.domain.de (www.domain.de) [83.xxx.xx.102]

  exim4 is on default - no modifications so far
  and - as i stated - its working if i connect via thunderbird mail
  program. so the smtp server might not be responsible.
  is it really the cake component which fails?

  version:
  cake1.3 head

  i am really clueless whats going on here, why smtp does not work. any
  ideas? that would save my day. thx

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


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 component - sending mail via smtp fails on own server!

2010-06-03 Thread Jonathon Musters
Try a simple test

Using php only not cake.  Try sending an email
If it works cake issue if not server config


Let us know
Jonathon


On 6/3/10, euromark dereurom...@googlemail.com wrote:
 i have quite a strange problem with the email component
 it never failed me before

 but on the new server i installed an own exim4 mail server with imap/
 pop/smtp
 well,
 - sending mails wie mail() works,
 - sending mails via smtp from outside (like thunderbird email program)
 works
 - sending mails wie cake email component to myself (own domain) works
 as well

 but
 - sending mails to other providers (gmx, web, ...) always returns
 FALSE
 i debugged it and found out after getting 503, it does authenticate
 (line 816 ff):
   $authRequired = $this-_smtpSend('AUTH LOGIN', '334|503');

 the next statement returns 250 (line 829 ff) - thats fine too:
  if (!$this-_smtpSend('MAIL FROM: ' . $this-_formatAddress($this-
from, true))) {

 but the next one fails (if its a foreign domain) (line 839 ff):
   if (!$this-_smtpSend('RCPT TO: ' . $this-_formatAddress($to,
 true))) {

 it just returns an empty string (which of course results in return
 false)

 the foreign email addresses are valid and this is my exim4 error log:

 2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102]
 F=kont...@domain.de rejected RCPT n...@foreigndomain.de: relay not
 permitted
 2010-06-03 22:45:10 unexpected disconnection while reading SMTP
 command from my.domain.de (www.domain.de) [83.xxx.xx.102]

 exim4 is on default - no modifications so far
 and - as i stated - its working if i connect via thunderbird mail
 program. so the smtp server might not be responsible.
 is it really the cake component which fails?

 version:
 cake1.3 head

 i am really clueless whats going on here, why smtp does not work. any
 ideas? that would save my day. thx

 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


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 component - sending mail via smtp fails on own server!

2010-06-03 Thread euromark
as i mentioned above, php mails via mail() are working both cake and
pure php based

using my good old phpmailer from the days before cake i get a
similar error
with
 $mail-SMTPAuth = true;
and
 $mail-IsSMTP();
like this:

SMTP - ERROR: Failed to connect to server: Invalid argument (22)
SMTP Error: Could not connect to SMTP host. (bool)FALSE


if i dont use $mail-IsSMTP(); the email gets successfully sent (via
mail() - which of course works)

it might actually be something connected to the smtp server...



On 4 Jun., 00:01, Jonathon Musters luvz2...@gmail.com wrote:
 Try a simple test

 Using php only not cake.  Try sending an email
 If it works cake issue if not server config

 Let us know
 Jonathon

 On 6/3/10, euromark dereurom...@googlemail.com wrote:

  i have quite a strange problem with the email component
  it never failed me before

  but on the new server i installed an own exim4 mail server with imap/
  pop/smtp
  well,
  - sending mails wie mail() works,
  - sending mails via smtp from outside (like thunderbird email program)
  works
  - sending mails wie cake email component to myself (own domain) works
  as well

  but
  - sending mails to other providers (gmx, web, ...) always returns
  FALSE
  i debugged it and found out after getting 503, it does authenticate
  (line 816 ff):
    $authRequired = $this-_smtpSend('AUTH LOGIN', '334|503');

  the next statement returns 250 (line 829 ff) - thats fine too:
   if (!$this-_smtpSend('MAIL FROM: ' . $this-_formatAddress($this-
 from, true))) {

  but the next one fails (if its a foreign domain) (line 839 ff):
    if (!$this-_smtpSend('RCPT TO: ' . $this-_formatAddress($to,
  true))) {

  it just returns an empty string (which of course results in return
  false)

  the foreign email addresses are valid and this is my exim4 error log:

  2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102]
  F=kont...@domain.de rejected RCPT n...@foreigndomain.de: relay not
  permitted
  2010-06-03 22:45:10 unexpected disconnection while reading SMTP
  command from my.domain.de (www.domain.de) [83.xxx.xx.102]

  exim4 is on default - no modifications so far
  and - as i stated - its working if i connect via thunderbird mail
  program. so the smtp server might not be responsible.
  is it really the cake component which fails?

  version:
  cake1.3 head

  i am really clueless whats going on here, why smtp does not work. any
  ideas? that would save my day. thx

  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 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 Component: I see html email as source code in Squirrel mail web client

2010-04-16 Thread John Andersen
Let your users define whether they wish to receive emails from you in
html or plain text. Then it is up to them to change it to the right
choice, should their email solution not be able to show the chosen
format.

If you don't want to do that, then maybe just send a plain text email,
that also contains the address of the html version, so that they can
see the html version in the browser instead.

Should any other have another idea, please enlighten us :)
Enjoy,
   John

On Apr 16, 9:26 am, Prof. No Time libertylivingst...@gmail.com
wrote:
 When I send Email via the Email Component as Both i.e. html and
 text. It appears fine in my outlook and also yahoo and I think Gmail
 too but when I check it in Squirrel Mail webmail interface, it shows
 the text portion  first, then the html source code underneath. This is
 pretty embarrassing as most of my clients will be checking via
 webmail. What can I do to prevent this, please.

 Thank You.

 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 Component return path

2009-07-28 Thread tobi_one

Why not use

$this-Email-replyTo = 'jdai...@gmail.com';
$this-Email-from = 'Obiyoda jdai...@gmail.com';

instead?

Cheers,
tobi_one

On Jul 28, 4:26 pm, Obiyoda jdai...@gmail.com wrote:
 I can't seem to get the email component to set a correct return path
 in the header. I've tried setting $this-Email-return =
 'someb...@somewhere.com' yet the email headers are showing the return
 paths as being www-d...@localhost instead of someb...@somewhere.com.
 I'm using ubuntu Jaunty with sendmail in my test environment if that
 helps at all but i've tried it on our production server and it gives
 me the same issues(also using sendmail).
--~--~-~--~~~---~--~~
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 Component Help: smtpError

2009-05-12 Thread rartavia

Any body knows any other nice email component available to use with
cake?
--~--~-~--~~~---~--~~
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 Component Help: smtpError

2009-05-12 Thread mscdex

rartavia wrote:
 Any body knows any other nice email component available to use with
 cake?

PHPMailer (http://phpmailer.codeworxtech.com/index.php?pg=phpmailer)
is a popular standalone library that you could use within cake. IIRC
you just have to place it in the vendors folder and import it in your
cake app.
--~--~-~--~~~---~--~~
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 Component Help: smtpError

2009-05-12 Thread rartavia

Thanks man,
I ended up using SwiftMailer. I found a Cake Component by Matt Huggins
(http://bakery.cakephp.org/articles/view/improved-swiftmailer-
component) that used SwiftMailer 3, since current version is 4.0.3 I
modified Matt's Component for current release and thats what I'm using
now.
The problem I was having actually disappeared with the use of
SwiftMailer, so I guess there's something wrong with cake's email
component sending through SMTP, at least with my hosting (bluehost).
Thanks for your help.

--~--~-~--~~~---~--~~
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 Component, cc and bcc not working?

2009-05-12 Thread Graham Weldon
Hi Louie,

I believe the cc and bcc variables need to be arrays.
Try wrapping them in an array and see how that goes for you.

Cheers,
Graham Weldon
http://grahamweldon.com





Louie Miranda wrote:
 Hi, I have setup the email component properly on cakephp. I can send 
 and it's ok for both html and text.

 I tried adding the cc and bcc option, however. It seems to be not working.
 http://api.cakephp.org/class/email-component

 $this-Email-to = 'u...@example.com mailto:u...@example.com, 
 lmira...@example.com mailto:lmira...@example.com';
 $this-Email-cc = 'us...@example.com mailto:us...@example.com';
 $this-Email-bcc = 'bcc...@example.com mailto:bcc...@example.com';

 I am using CakePHP...

 cat VERSION.txt
 ///
 // 
 +---+
  
 //
 // + $Id: VERSION.txt 7962 2008-12-25 23:30:33Z gwoo $
 // + Last Modified: $Date: 2008-12-25 17:30:33 -0600 (Thu, 25 Dec 2008) $
 // + Modified By: $LastChangedBy: gwoo $
 // 
 +---+
  
 //
 ///

 *1.2.0.7962*

 any ideas?
 --
 Louie Miranda (lmira...@gmail.com mailto:lmira...@gmail.com)
 http://www.louiemiranda.net

 Quality Web Hosting - www.axishift.com http://www.axishift.com
 Pinoy Web Hosting, Web Hosting Philippines

 


--~--~-~--~~~---~--~~
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 Component, cc and bcc not working?

2009-05-12 Thread Louie Miranda
It worked! thanks a lot.

$ccArray = array('lmira...@example.com', 'us...@example.com');
--
Louie Miranda (lmira...@gmail.com)
http://www.louiemiranda.net

Quality Web Hosting - www.axishift.com
Pinoy Web Hosting, Web Hosting Philippines


On Wed, May 13, 2009 at 12:17 PM, Graham Weldon gra...@grahamweldon.comwrote:

  Hi Louie,

 I believe the cc and bcc variables need to be arrays.
 Try wrapping them in an array and see how that goes for you.

 Cheers,
 Graham Weldon
 http://grahamweldon.com






 Louie Miranda wrote:

 Hi, I have setup the email component properly on cakephp. I can send and
 it's ok for both html and text.

 I tried adding the cc and bcc option, however. It seems to be not working.
 http://api.cakephp.org/class/email-component

 $this-Email-to = 'u...@example.com, lmira...@example.com';
 $this-Email-cc = 'us...@example.com';
 $this-Email-bcc = 'bcc...@example.com';

 I am using CakePHP...

 cat VERSION.txt

 ///
 //
 +---+
 //
 // + $Id: VERSION.txt 7962 2008-12-25 23:30:33Z gwoo $
 // + Last Modified: $Date: 2008-12-25 17:30:33 -0600 (Thu, 25 Dec 2008) $
 // + Modified By: $LastChangedBy: gwoo $
 //
 +---+
 //

 ///

 *1.2.0.7962*

 any ideas?
 --
 Louie Miranda (lmira...@gmail.com)
 http://www.louiemiranda.net

 Quality Web Hosting - www.axishift.com
 Pinoy Web Hosting, Web Hosting Philippines




 


--~--~-~--~~~---~--~~
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 Component Help: smtpError

2009-05-11 Thread rartavia

I write to support to my hosting this is what they told:

I checked the mail logs and it shows that it wasn't authenticated.
Like it either wasn't using the correct username and password or it
didn't like the password possibly for characters I'm not sure, it only
tells me it wasn't authenticated.

The username  password that I'm sending are correct, and I even
change them to standard characters just in case.
Is there any other smtp option needed to tell cake's email component
to authenticate? Any other config besides $this-Email-delivery =
'smtp';
Can this be a component´s bug or something?
--~--~-~--~~~---~--~~
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 Component Help: smtpError

2009-05-10 Thread rartavia

Hello mscdex, thanks a lot for your answer

 I haven't used the Email component yet, but I did notice that with the
 newest version of cake (1.2.3.8166) there was a fix for the Email
 component. Specifically, instead of sending a hardcoded HELO cake,
 this newest version will send HELO  and then the value of the 'host'
 smtpOption. This may or may not fix your problem, but I thought it
 might be worth mentioning since it seems like it may be comparing that
 HELO string against their host name.

I did not understand what you meant with the HELO cake, where does
your observation applies?

About the from, I'm going to try removing it see how that goes and
post back.

Thanks!
--~--~-~--~~~---~--~~
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 Component Help: smtpError

2009-05-09 Thread mscdex

On May 9, 8:19 pm, rartavia royarta...@gmail.com wrote:
 $this-Email-smtpError throws error: 550-(cake) [ipaddress] is
 currently not permitted to relay through this 550-server. Perhaps you
 have not logged into the pop/imap server in the last 30 550 minutes or
 do not have SMTP Authentication turned on in your email client.

I haven't used the Email component yet, but I did notice that with the
newest version of cake (1.2.3.8166) there was a fix for the Email
component. Specifically, instead of sending a hardcoded HELO cake,
this newest version will send HELO  and then the value of the 'host'
smtpOption. This may or may not fix your problem, but I thought it
might be worth mentioning since it seems like it may be comparing that
HELO string against their host name.

Otherwise, perhaps it might be due to the from address you're using.
Is the domain on the from email address the same as the domain of
the smtp host you're using to send the email? If it's not the same, I
know some smtp servers will disallow from and smtp host domains that
do not match, since that is how spammers (used to?) send bulk email
from bogus addresses.
--~--~-~--~~~---~--~~
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 component and smtp error +OK 27407.1240210...@sword3

2009-04-20 Thread AgBorkowski

its my fail i had bad hostname should be: smtp.hti.pl but last error
didn't tell me nothing about that

On 20 Kwi, 08:52, andrzejborkow...@gmail.com
andrzejborkow...@gmail.com wrote:
 i try sent email by
 $this-Email-to = $email;

 $config['Email']['from'] = 'andrzej.borkow...@lowcy.com.pl';
 $config['Email']['fromName'] = 'a.borkowski';
 $config['Email']['port'] = '110';
 $config['Email']['host'] = 'poczta.hti.pl';
 $config['Email']['username'] = 'andrzej.borkow...@lowcy.com.pl';
 $config['Email']['password'] = 'pass';

 $this-Email-smtpOptions = $config['Email'];
 $this-Email-subject = $subject;
 $this-Email-replyTo = 'AgBorkowski
 andrzej.borkow...@lowcy.com.pl';
 $this-Email-from = 'AgBorkowski andrzej.borkow...@lowcy.com.pl';
 $this-Email-delivery = 'smtp';
 $this-Email-send('test');

 cms\app_controller.php (line 92)

 +OK 27407.1240210...@sword3

 anybody seen this error ? my mail has not dilivery..
--~--~-~--~~~---~--~~
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 component attach domainkeys

2009-03-22 Thread Dennis S. Hennen

 Does anyone have experience with domain keys and how they should be
 implemented in the mail function ?

I did not implement this myself, but we were using postfix on our box
and our sysadmin had the domainkey added by the MTA, not from within
Cake or PHP.

-dsh

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

2009-03-15 Thread dr. Hannibal Lecter

You might want do a DISTINCT select on that one if you're talking
about per-page keep me updated.

On Mar 15, 5:42 pm, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
 I am using the email component in my site and what I want to do is when a
 USER posts a new comment to a specific page it will notify all USERS who in
 their profile have selected Keep me updated of new comments.

 So I was thinking when a new post is added write a function basically like
 this
 emailAll ()
 sendTo = find all USERS where Keep_me_updated = 1;
 set sendTo, $sendTo ;
 foreach ($sendTo['User'] as $sendTo) :

 the sending info and such.

 endforeach;

 Is this the best way to go about it?

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

2009-03-15 Thread Miles J

Yes doing a loop would be the best way to do it. Dont forget to call
$this-Email-reset() in the loop.
--~--~-~--~~~---~--~~
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 component with smtp error: 503

2009-03-04 Thread remy

I'm afraid, it's more complicated than that...
When I unset the username and password, I get the error 550 unknown
user. So the authentication should work.

Any idea what this could be?
--~--~-~--~~~---~--~~
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 component with smtp error: 503

2009-03-03 Thread brian

On Tue, Mar 3, 2009 at 8:18 AM, remy remyjacob...@gmail.com wrote:

 Hello all,

 I'm trying to get the Email component to work with smtp. I'm using the
 right smtpOptions for the server, but I keep receiving the error: 503
 AUTH command used when not advertised

 Can I anyone tell me what I do wrong and what the error means? I can't
 find any solution on the cake site or somewhere else on the internet

um ...
http://www.google.com/search?source=ighl=enrlz=1G1GGLQ_ENUS271=q=AUTH+command+used+when+not+advertisedbtnG=Google+Searchaq=f

The problem is that your SMTP server has AUTH=0 set but you're passing
a username  password anyway. Unset those and it should be fine.

Note that I don't use Cake's EmailComponent so it may be more
complicated than that.

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

2009-01-14 Thread bycho

When running the app in localhost, I use a simple way to see how the
emails will look like.

Try inserting this line:

$this-Email-delivery = ife(Configure::read('debug')
==0,'mail','debug');

And after the send() call, include this line:

$this-Session-setFlash(ife(Configure::read('debug')==0,__(Check
your email!,true),pr($this-Session-read('Message.email';

If the debug setting is higher than 0, instead of sending the actual
email, it will show the email in the flash message (provided that you
included the flash message somewhere in your layout)

Hope this helps

On Jan 14, 6:09 am, Miles J mileswjohn...@gmail.com wrote:
 Its probably because your on localhost. If you dont have a mail server
 setup as well on your localhost, no emails will be sent.

 I usually have to test my contact once the site goes live.

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

2009-01-13 Thread brian

I'm not sure what's wrong, either. I'm also not sure how to begin
trying to help without some kind of explanation of the problem. Are
you sure that your code even reaches the send() call? Does your data
contain all the relevant info for sending? Is this running on your
desktop or a remote server? Are you using an SMTP server? Is the SMTP
server set up to allow you to send out? Have you looked at the
maillog?

On Tue, Jan 13, 2009 at 9:35 PM, kai k3ho...@gmail.com wrote:

 here's my code: http://bin.cakephp.org/view/1065723096

 i'm not sure what's wrong. i've followed two different tutorials and
 my code makes sense when i compare. i must be missing something. no
 errors show up. i'm not sure how to begin debugging. any help would be
 great.
 


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

2009-01-13 Thread Miles J

Make sure var $components = array('Email').

And how are you sure its not working, the email is going to a fake
destination? Also if its a local server, a lot of the time mail is not
setup.

Also its Anonymous, not Anonomous.
--~--~-~--~~~---~--~~
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 component

2009-01-13 Thread kai

Heh, thank you Miles for the spelling correction.

The email component is being called. The e-mail is set to go to my
normal account which is my gmail address ($this-Email-to =
'k3ho...@gmail.com';). I never receive any mail when i use my form.
The only logic that could stop send() is if validation does not pass
but i've tried removing all validation rules. When I check $this-data
it shows up properly. I'm running off localhost (is there perhaps
server settings that i'm ignorant of?). I can add the SMTP server
settings of the host that the app will eventually be running off of.
The more questions you ask about SMTP the more I'm thinking that I
need to read about my localhost mail settings. I'll begin to do so.
Any more direction is much appreciated.
--~--~-~--~~~---~--~~
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 component

2009-01-13 Thread Miles J

Its probably because your on localhost. If you dont have a mail server
setup as well on your localhost, no emails will be sent.

I usually have to test my contact once the site goes live.
--~--~-~--~~~---~--~~
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 component — problems sending to same domain

2008-12-31 Thread Smelly_Eddie

smtp should be the default. It is the de facto standard for internet
transfer of email (simple mail transfer protocol)

mail is a 'nix based system of mails that are usually handled
internally or within a lan.   I don't think that switching to mail
would help as the email would never reach your mail client. it would
just sit in the mail file waiting for you to login to the server.

This sounds like something you'll need to adress the host on.

Just curious what host are you using?



On Dec 30, 11:08 am, RyOnLife ryan.mckil...@gmail.com wrote:
 Hello, I am using the Email component and have the 'to' address set like
 this:

 $this-Email-to = 'm...@mydomain.com';

 If mydomain.com is a domain hosted on my server, the email never arrives,
 but it works just fine when I change to:

 $this-Email-to = 'm...@gmail.com';

 I assume this is a server setup issue—and not a Cake one—so I plan to talk
 to my host. Looking at the email.php component in the Cake core, seems that
 $this-delivery can either be 'smtp' or 'mail'. Is smtp the default? If the
 delivery method is 'mail', what mail sending service does that refer to?

 Thanks!
 --
 View this message in 
 context:http://n2.nabble.com/Email-component-%E2%80%94%C2%A0problems-sending-...
 Sent from the CakePHP mailing list archive at Nabble.com.
--~--~-~--~~~---~--~~
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 component — problems sending to same domain

2008-12-31 Thread RyOnLife


Thanks Eddie I'll take it up with my host. I use Media Temple. They're great.




Smelly_Eddie wrote:
 
 
 smtp should be the default. It is the de facto standard for internet
 transfer of email (simple mail transfer protocol)
 
 mail is a 'nix based system of mails that are usually handled
 internally or within a lan.   I don't think that switching to mail
 would help as the email would never reach your mail client. it would
 just sit in the mail file waiting for you to login to the server.
 
 This sounds like something you'll need to adress the host on.
 
 Just curious what host are you using?
 
 
 
 On Dec 30, 11:08 am, RyOnLife ryan.mckil...@gmail.com wrote:
 Hello, I am using the Email component and have the 'to' address set like
 this:

 $this-Email-to = 'm...@mydomain.com';

 If mydomain.com is a domain hosted on my server, the email never arrives,
 but it works just fine when I change to:

 $this-Email-to = 'm...@gmail.com';

 I assume this is a server setup issue—and not a Cake one—so I plan to
 talk
 to my host. Looking at the email.php component in the Cake core, seems
 that
 $this-delivery can either be 'smtp' or 'mail'. Is smtp the default? If
 the
 delivery method is 'mail', what mail sending service does that refer to?

 Thanks!
 --
 View this message in
 context:http://n2.nabble.com/Email-component-%E2%80%94%C2%A0problems-sending-...
 Sent from the CakePHP mailing list archive at Nabble.com.
  
 
 

-- 
View this message in context: 
http://n2.nabble.com/Email-component-%E2%80%94%C2%A0problems-sending-to-same-domain-tp2092849p2096274.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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 component parsing body to find headers?

2008-12-17 Thread Arthur Pemberton

On Wed, Dec 17, 2008 at 11:30 AM, caminante running.ba...@gmail.com wrote:

 Hello, I'm having a problem in which the Email component

This sucks so bar. For some reason I though Email wuld be a helper and
not a component.

Spent a few hours last night trying to get email to work properly,
only to find today that it had already been done in CakePHP :(


-- 
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )

--~--~-~--~~~---~--~~
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 component links not including domain name

2008-08-30 Thread Dr. Tarique Sani

On Sat, Aug 30, 2008 at 3:14 PM, Hoddy [EMAIL PROTECTED] wrote:


 cake ver: RC 1.20796 (latest version)

 Hi

 Has anyone noticed that links are created without the domain name when
 using them in elements for the email component?

 I'm using same syntax that i use elsewhere in views where the domain
 name
 appears in the link

 the code im using is...

 ?php echo $html-link('view the advert details on the website...',
   '/adverts/view/'. $Advert['id']  ); ?



$html-link() will not give you a full URL

you need to use $html-url() with the second param set as true to get
the complete URL

I will leave it as an exercise for to you use the above two in conjunction :)

HTH

Tarique

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

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



Re: email component links not including domain name

2008-08-30 Thread Amit Badkas
2008/8/30 Dr. Tarique Sani [EMAIL PROTECTED]


 On Sat, Aug 30, 2008 at 3:14 PM, Hoddy [EMAIL PROTECTED] wrote:
 
 
  cake ver: RC 1.20796 (latest version)
 
  Hi
 
  Has anyone noticed that links are created without the domain name when
  using them in elements for the email component?
 
  I'm using same syntax that i use elsewhere in views where the domain
  name
  appears in the link
 
  the code im using is...
 
  ?php echo $html-link('view the advert details on the website...',
'/adverts/view/'. $Advert['id']  );
 ?
 
 

 $html-link() will not give you a full URL

 you need to use $html-url() with the second param set as true to get
 the complete URL

 I will leave it as an exercise for to you use the above two in conjunction
 :)

 HTH

 Tarique


- In short, you need to do, ?php echo $html-link('view the advert details
on the website...', $html-url('/adverts/view/'. $Advert['id'], true)); ?

-- 
Amit

http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas

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



Re: Email component won't send

2008-07-03 Thread Marcin Domanski

hey,
$method is for ex. 'smtp' so send calls __smtp function.
Can't help you with the quotes but ive built a little component that
uses swiftmailer library and - its a drop in replacement - you use can
use it the same like the built in one.
It needs just a tiny bit of code in your AppController::beforeFilter
and it should work(you also need SwiftMailer library in your vendors
dir if you will download the component from 'files' section instead of
usingGIT).
if you have time - try it ;)
http://www.assembla.com/wiki/show/swift_email_component

HTH,

On Thu, Jul 3, 2008 at 6:09 AM, senser [EMAIL PROTECTED] wrote:

 No success :(

 I tried to put quotes but didn't help:
 $this-Email-replyTo=''.$this-data['Question']['name'].' '.$this-
data['Question']['email'].'';
 $this-Email-from=''.$this-data['Question']['name'].' '.$this-
data['Question']['email'].'';

 I read the source of email component trying to figure the problem but
 there's a little portion I can't understand  -  function send
 returns this return $this-$__method();.

 I would appreciate any directions and suggestions.

 Thanks!

 On Jul 3, 2:08 am, lmuszkie [EMAIL PROTECTED] wrote:
 Jonah:

 Try putting your name in quotes:

 $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';

 -luke

 On Jul 2, 1:13 pm, senser [EMAIL PROTECTED] wrote:

  Hello,

  I have similar problem withemailcomponent- php mail function works
  fine but Cake can'tsendemailthrough built-incomponent.
  Here is debug output::

  To: [EMAIL PROTECTED]
  From: [EMAIL PROTECTED]
  Subject: Query from website
  Header:

  From: [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  X-Mailer: CakePHPEmailComponent
  Content-Type: multipart/alternative; boundary=alt-

  Content-Transfer-Encoding: 7bitParameters:

  Message:

  --alt-
  Content-Type: text/plain; charset=utf-8
  Content-Transfer-Encoding: 7bit

  Query from
 Email
  Phone

  Query

  --alt-
  Content-Type: text/html; charset=utf-8
  Content-Transfer-Encoding: 7bit

  Query from
 Email:
  Phone

  Query
  --alt---

  And here is the content of my controller:

  functionsend($id=null){

  $this-layout='small';

  if(!empty($this-data['Question'])){
  $this-Question-set($this-data['Question']);
  if($this-Question-validates()){
  if(!empty($this-data['Question']['id'])){
  
  $this-Question-bindModel(array('belongsTo'=array('Offer')));
  $this-Question-Offer-set('id', 
  $this-data['Question']['id']);
  
  if($this-Question-Offer-exists()){
  
  $this-data['Question']['about']=$id;
  }
  else{
  
  unset($this-data['Question']['about']);
  }
  }

  $this-Email-to='[EMAIL PROTECTED]';
  
  $this-Email-replyTo=$this-data['Question']['email'];
  
  $this-Email-from=$this-data['Question']['email'];
  $this-Email-subject='Query from website';
  $this-Email-sendAs='both';
  $this-Email-template='default';
  $this-Email-layout='default';
  $this-Email-delivery='mail';
  $this-set('Question', 
  $this-data['Question']);

  if($this-Email-send()){
  
  $this-Session-setFlash(__('Successful_query', true));
  $this-render('/questions/send', 
  'small');
  }
  else{
  
  $this-Session-setFlash(__('Email_problem', true));
  $this-render('/questions/send', 
  'small');
  }

  }
  else{
  $this-render('/questions/send', 'small');
  }
  }
  else{
  $this-data['Question']['about']=$id;
  $this-render('/questions/send', 'small');
  }

  }

  Any suggestions ???

  On Jul 1, 1:16 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

   Ok, thanks for the help.  I'm not sure yet if I am going to switch or
   not yet, as it does work kinda, just not all the way.  Probably will
   later actually

   Thanks,
   Jonah

   On Jun 30, 3:07 pm, r0mk1n [EMAIL PROTECTED] wrote:

no, you can use it 

Re: Email component won't send

2008-07-03 Thread senser

Thank you Marc, I'll give a try.

I cannot use SMTP because my hosting provider rejects it, so the only
way is to send with php mail() function

On Jul 3, 11:12 am, Marcin Domanski [EMAIL PROTECTED] wrote:
 hey,
 $method is for ex. 'smtp' sosendcalls __smtp function.
 Can't help you with the quotes but ive built a littlecomponentthat
 uses swiftmailer library and - its a drop in replacement - you use can
 use it the same like the built in one.
 It needs just a tiny bit of code in your AppController::beforeFilter
 and it should work(you also need SwiftMailer library in your vendors
 dir if you will download thecomponentfrom 'files' section instead of
 usingGIT).
 if you have time - try it 
 ;)http://www.assembla.com/wiki/show/swift_email_component

 HTH,

 On Thu, Jul 3, 2008 at 6:09 AM, senser [EMAIL PROTECTED] wrote:

  No success :(

  I tried to put quotes but didn't help:
  $this-Email-replyTo=''.$this-data['Question']['name'].' '.$this-
 data['Question']['email'].'';
  $this-Email-from=''.$this-data['Question']['name'].' '.$this-
 data['Question']['email'].'';

  I read the source ofemailcomponenttrying to figure the problem but
  there's a little portion I can't understand  -  function send
  returns this return $this-$__method();.

  I would appreciate any directions and suggestions.

  Thanks!

  On Jul 3, 2:08 am, lmuszkie [EMAIL PROTECTED] wrote:
  Jonah:

  Try putting your name in quotes:

  $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';

  -luke

  On Jul 2, 1:13 pm, senser [EMAIL PROTECTED] wrote:

   Hello,

   I have similar problem withemailcomponent- php mail function works
   fine but Cake can'tsendemailthrough built-incomponent.
   Here is debug output::

   To: [EMAIL PROTECTED]
   From: [EMAIL PROTECTED]
   Subject: Query from website
   Header:

   From: [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   X-Mailer: CakePHPEmailComponent
   Content-Type: multipart/alternative; boundary=alt-

   Content-Transfer-Encoding: 7bitParameters:

   Message:

   --alt-
   Content-Type: text/plain; charset=utf-8
   Content-Transfer-Encoding: 7bit

   Query from
  Email
   Phone

   Query

   --alt-
   Content-Type: text/html; charset=utf-8
   Content-Transfer-Encoding: 7bit

   Query from
  Email:
   Phone

   Query
           --alt---

   And here is the content of my controller:

   functionsend($id=null){

                   $this-layout='small';

                   if(!empty($this-data['Question'])){
                           $this-Question-set($this-data['Question']);
                           if($this-Question-validates()){
                                   
   if(!empty($this-data['Question']['id'])){
                                           
   $this-Question-bindModel(array('belongsTo'=array('Offer')));
                                           
   $this-Question-Offer-set('id', $this-data['Question']['id']);
                                           
   if($this-Question-Offer-exists()){
                                                   
   $this-data['Question']['about']=$id;
                                           }
                                           else{
                                                   
   unset($this-data['Question']['about']);
                                           }
                                   }

                                   $this-Email-to='[EMAIL PROTECTED]';
                                   
   $this-Email-replyTo=$this-data['Question']['email'];
                                   
   $this-Email-from=$this-data['Question']['email'];
                                   $this-Email-subject='Query from 
   website';
                                   $this-Email-sendAs='both';
                                   $this-Email-template='default';
                                   $this-Email-layout='default';
                                   $this-Email-delivery='mail';
                                   $this-set('Question', 
   $this-data['Question']);

                                   if($this-Email-send()){
                                           
   $this-Session-setFlash(__('Successful_query', true));
                                           $this-render('/questions/send', 
   'small');
                                   }
                                   else{
                                           
   $this-Session-setFlash(__('Email_problem', true));
                                           $this-render('/questions/send', 
   'small');
                                   }

                           }
                           else{
                                   $this-render('/questions/send', 
   'small');
                           }
                   }
                   else{
                           $this-data['Question']['about']=$id;
                           $this-render('/questions/send', 'small');
                   }

           }

   Any suggestions ???

   On Jul 

Re: Email component won't send

2008-07-03 Thread senser

Thank you Marc, I'll give a try.

I cannot use SMTP because my hosting provider rejects it, so the only
way is to send with php mail() function

On Jul 3, 11:12 am, Marcin Domanski [EMAIL PROTECTED] wrote:
 hey,
 $method is for ex. 'smtp' sosendcalls __smtp function.
 Can't help you with the quotes but ive built a littlecomponentthat
 uses swiftmailer library and - its a drop in replacement - you use can
 use it the same like the built in one.
 It needs just a tiny bit of code in your AppController::beforeFilter
 and it should work(you also need SwiftMailer library in your vendors
 dir if you will download thecomponentfrom 'files' section instead of
 usingGIT).
 if you have time - try it 
 ;)http://www.assembla.com/wiki/show/swift_email_component

 HTH,

 On Thu, Jul 3, 2008 at 6:09 AM, senser [EMAIL PROTECTED] wrote:

  No success :(

  I tried to put quotes but didn't help:
  $this-Email-replyTo=''.$this-data['Question']['name'].' '.$this-
 data['Question']['email'].'';
  $this-Email-from=''.$this-data['Question']['name'].' '.$this-
 data['Question']['email'].'';

  I read the source ofemailcomponenttrying to figure the problem but
  there's a little portion I can't understand  -  function send
  returns this return $this-$__method();.

  I would appreciate any directions and suggestions.

  Thanks!

  On Jul 3, 2:08 am, lmuszkie [EMAIL PROTECTED] wrote:
  Jonah:

  Try putting your name in quotes:

  $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';

  -luke

  On Jul 2, 1:13 pm, senser [EMAIL PROTECTED] wrote:

   Hello,

   I have similar problem withemailcomponent- php mail function works
   fine but Cake can'tsendemailthrough built-incomponent.
   Here is debug output::

   To: [EMAIL PROTECTED]
   From: [EMAIL PROTECTED]
   Subject: Query from website
   Header:

   From: [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   X-Mailer: CakePHPEmailComponent
   Content-Type: multipart/alternative; boundary=alt-

   Content-Transfer-Encoding: 7bitParameters:

   Message:

   --alt-
   Content-Type: text/plain; charset=utf-8
   Content-Transfer-Encoding: 7bit

   Query from
  Email
   Phone

   Query

   --alt-
   Content-Type: text/html; charset=utf-8
   Content-Transfer-Encoding: 7bit

   Query from
  Email:
   Phone

   Query
           --alt---

   And here is the content of my controller:

   functionsend($id=null){

                   $this-layout='small';

                   if(!empty($this-data['Question'])){
                           $this-Question-set($this-data['Question']);
                           if($this-Question-validates()){
                                   
   if(!empty($this-data['Question']['id'])){
                                           
   $this-Question-bindModel(array('belongsTo'=array('Offer')));
                                           
   $this-Question-Offer-set('id', $this-data['Question']['id']);
                                           
   if($this-Question-Offer-exists()){
                                                   
   $this-data['Question']['about']=$id;
                                           }
                                           else{
                                                   
   unset($this-data['Question']['about']);
                                           }
                                   }

                                   $this-Email-to='[EMAIL PROTECTED]';
                                   
   $this-Email-replyTo=$this-data['Question']['email'];
                                   
   $this-Email-from=$this-data['Question']['email'];
                                   $this-Email-subject='Query from 
   website';
                                   $this-Email-sendAs='both';
                                   $this-Email-template='default';
                                   $this-Email-layout='default';
                                   $this-Email-delivery='mail';
                                   $this-set('Question', 
   $this-data['Question']);

                                   if($this-Email-send()){
                                           
   $this-Session-setFlash(__('Successful_query', true));
                                           $this-render('/questions/send', 
   'small');
                                   }
                                   else{
                                           
   $this-Session-setFlash(__('Email_problem', true));
                                           $this-render('/questions/send', 
   'small');
                                   }

                           }
                           else{
                                   $this-render('/questions/send', 
   'small');
                           }
                   }
                   else{
                           $this-data['Question']['about']=$id;
                           $this-render('/questions/send', 'small');
                   }

           }

   Any suggestions ???

   On Jul 

Re: Email component won't send

2008-07-03 Thread senser

After a lot of debugging I found the problem - it's my hosting
provider related I suppose. The problem is the fifth parameter of PHP
mail() function called additional_parameters - if is passed to the
function it fails. So now I can send email with Cake only if set
safe_mode to 1 with ini_set('safe_mode', 1) - this makes Cake built-in
email component to send emails without additional_parameters.

But there is other annoying moment with this - email headers are shown
in email body like this:

X-Mailer: CakePHP Email Component

Content-Type: text/plain; charset=utf-8

Content-Transfer-Encoding: 7bit
X-Anti-Abuse: this mail was sent by Host.bg client
X-Anti-Abuse: galatea-bg.com. In case of abuse forward this
X-Anti-Abuse: mail with all headers included to [EMAIL PROTECTED]
Message-Id: [EMAIL PROTECTED]
Date: Thu,  3 Jul 2008 20:12:00 +0300 (EEST)

And email encoding is not detected - user must select encoding to view
message correctly. I think it's some problem with message headers
created in email_component

On Jul 3, 3:31 pm, senser [EMAIL PROTECTED] wrote:
 Thank you Marc, I'll give a try.

 I cannot use SMTP because my hosting provider rejects it, so the only
 way is tosendwith php mail() function

 On Jul 3, 11:12 am, Marcin Domanski [EMAIL PROTECTED] wrote:

  hey,
  $method is for ex. 'smtp' sosendcalls __smtp function.
  Can't help you with the quotes but ive built a littlecomponentthat
  uses swiftmailer library and - its a drop in replacement - you use can
  use it the same like the built in one.
  It needs just a tiny bit of code in your AppController::beforeFilter
  and it should work(you also need SwiftMailer library in your vendors
  dir if you will download thecomponentfrom 'files' section instead of
  usingGIT).
  if you have time - try it 
  ;)http://www.assembla.com/wiki/show/swift_email_component

  HTH,

  On Thu, Jul 3, 2008 at 6:09 AM, senser [EMAIL PROTECTED] wrote:

   No success :(

   I tried to put quotes but didn't help:
   $this-Email-replyTo=''.$this-data['Question']['name'].' '.$this-
  data['Question']['email'].'';
   $this-Email-from=''.$this-data['Question']['name'].' '.$this-
  data['Question']['email'].'';

   I read the source ofemailcomponenttrying to figure the problem but
   there's a little portion I can't understand  -  function send
   returns this return $this-$__method();.

   I would appreciate any directions and suggestions.

   Thanks!

   On Jul 3, 2:08 am, lmuszkie [EMAIL PROTECTED] wrote:
   Jonah:

   Try putting your name in quotes:

   $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';

   -luke

   On Jul 2, 1:13 pm, senser [EMAIL PROTECTED] wrote:

Hello,

I have similar problem withemailcomponent- php mail function works
fine but Cake can'tsendemailthrough built-incomponent.
Here is debug output::

To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Query from website
Header:

From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
X-Mailer: CakePHPEmailComponent
Content-Type: multipart/alternative; boundary=alt-

Content-Transfer-Encoding: 7bitParameters:

Message:

--alt-
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Query from
   Email
Phone

Query

--alt-
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

Query from
   Email:
Phone

Query
        --alt---

And here is the content of my controller:

functionsend($id=null){

                $this-layout='small';

                if(!empty($this-data['Question'])){
                        $this-Question-set($this-data['Question']);
                        if($this-Question-validates()){
                                
if(!empty($this-data['Question']['id'])){
                                        
$this-Question-bindModel(array('belongsTo'=array('Offer')));
                                        
$this-Question-Offer-set('id', $this-data['Question']['id']);
                                        
if($this-Question-Offer-exists()){
                                                
$this-data['Question']['about']=$id;
                                        }
                                        else{
                                                
unset($this-data['Question']['about']);
                                        }
                                }

                                $this-Email-to='[EMAIL PROTECTED]';
                                
$this-Email-replyTo=$this-data['Question']['email'];
                                
$this-Email-from=$this-data['Question']['email'];
                                $this-Email-subject='Query from 
website';
                                $this-Email-sendAs='both';
                                $this-Email-template='default';
                   

Re: Email component won't send

2008-07-03 Thread Jonathan Snook

 But there is other annoying moment with this - email headers are shown
 in email body

I suspect with the safe mode, custom headers are no longer possible,
leaving you to send messages using plain syntax. Considering your
environment, the built-in EmailComponent probably won't solve your
needs.

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



Re: Email component won't send

2008-07-02 Thread lmuszkie

Jonah:

Try putting your name in quotes:

$this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';

-luke

On Jul 2, 1:13 pm, senser [EMAIL PROTECTED] wrote:
 Hello,

 I have similar problem with email component - php mail function works
 fine but Cake can't send email through built-in component.
 Here is debug output::

 To: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Subject: Query from website
 Header:

 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 X-Mailer: CakePHP Email Component
 Content-Type: multipart/alternative; boundary=alt-

 Content-Transfer-Encoding: 7bitParameters:

 Message:

 --alt-
 Content-Type: text/plain; charset=utf-8
 Content-Transfer-Encoding: 7bit

 Query from
 Email
 Phone

 Query

 --alt-
 Content-Type: text/html; charset=utf-8
 Content-Transfer-Encoding: 7bit

 Query from
 Email:
 Phone

 Query
         --alt---

 And here is the content of my controller:

 function send($id=null){

                 $this-layout='small';

                 if(!empty($this-data['Question'])){
                         $this-Question-set($this-data['Question']);
                         if($this-Question-validates()){
                                 if(!empty($this-data['Question']['id'])){
                                         
 $this-Question-bindModel(array('belongsTo'=array('Offer')));
                                         $this-Question-Offer-set('id', 
 $this-data['Question']['id']);
                                         if($this-Question-Offer-exists()){
                                                 
 $this-data['Question']['about']=$id;
                                         }
                                         else{
                                                 
 unset($this-data['Question']['about']);
                                         }
                                 }

                                 $this-Email-to='[EMAIL PROTECTED]';
                                 
 $this-Email-replyTo=$this-data['Question']['email'];
                                 
 $this-Email-from=$this-data['Question']['email'];
                                 $this-Email-subject='Query from website';
                                 $this-Email-sendAs='both';
                                 $this-Email-template='default';
                                 $this-Email-layout='default';
                                 $this-Email-delivery='mail';
                                 $this-set('Question', 
 $this-data['Question']);

                                 if($this-Email-send()){
                                         
 $this-Session-setFlash(__('Successful_query', true));
                                         $this-render('/questions/send', 
 'small');
                                 }
                                 else{
                                         
 $this-Session-setFlash(__('Email_problem', true));
                                         $this-render('/questions/send', 
 'small');
                                 }

                         }
                         else{
                                 $this-render('/questions/send', 'small');
                         }
                 }
                 else{
                         $this-data['Question']['about']=$id;
                         $this-render('/questions/send', 'small');
                 }

         }

 Any suggestions ???

 On Jul 1, 1:16 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  Ok, thanks for the help.  I'm not sure yet if I am going to switch or
  not yet, as it does work kinda, just not all the way.  Probably will
  later actually

  Thanks,
  Jonah

  On Jun 30, 3:07 pm, r0mk1n [EMAIL PROTECTED] wrote:

   no, you can use it anywhere you want ( with correct options of
   course )

   On Jul 1, 1:03 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

Question, will using SMTP as you suggested still work once I upload it
to dreamhost?

On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

 I can use mail() with localhost.  I set up the php.ini to do it and it
 works fine.  I also got it to work with theemailcomponent, but only
 if I don't contain  or  characters, that is my problem.

 On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote:

  this string $this-smtpOptions .  must be:
  $this-Email-smtpOptions = array(  'port'= 25, 'host' =
  'yourSMTPServer', 'username'='yourUserName',
  'password'='yourSMTPPassword', 'timeout' = 30 );

  Sorry :(

  On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote:

   you are trying tosendvia PHPs mail function ( default method in
  Emailcomponent ), but you can`t do it from localhost ;)
   better way -sendvia SMTP

   1. you need to setup smtp delivery:

   $this-Email-delivery = 'smtp';

   2. setup SMTP params:

   $this-smtpOptions = array(  'port'= 25, 'host' = 
   'yourSMTPServer',
   'username'='yourUserName', 

Re: Email component won't send

2008-07-02 Thread lmuszkie

Jonah:

Try putting your name in quotes:

$this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';

-luke

On Jul 2, 1:13 pm, senser [EMAIL PROTECTED] wrote:
 Hello,

 I have similar problem with email component - php mail function works
 fine but Cake can't send email through built-in component.
 Here is debug output::

 To: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Subject: Query from website
 Header:

 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 X-Mailer: CakePHP Email Component
 Content-Type: multipart/alternative; boundary=alt-

 Content-Transfer-Encoding: 7bitParameters:

 Message:

 --alt-
 Content-Type: text/plain; charset=utf-8
 Content-Transfer-Encoding: 7bit

 Query from
 Email
 Phone

 Query

 --alt-
 Content-Type: text/html; charset=utf-8
 Content-Transfer-Encoding: 7bit

 Query from
 Email:
 Phone

 Query
         --alt---

 And here is the content of my controller:

 function send($id=null){

                 $this-layout='small';

                 if(!empty($this-data['Question'])){
                         $this-Question-set($this-data['Question']);
                         if($this-Question-validates()){
                                 if(!empty($this-data['Question']['id'])){
                                         
 $this-Question-bindModel(array('belongsTo'=array('Offer')));
                                         $this-Question-Offer-set('id', 
 $this-data['Question']['id']);
                                         if($this-Question-Offer-exists()){
                                                 
 $this-data['Question']['about']=$id;
                                         }
                                         else{
                                                 
 unset($this-data['Question']['about']);
                                         }
                                 }

                                 $this-Email-to='[EMAIL PROTECTED]';
                                 
 $this-Email-replyTo=$this-data['Question']['email'];
                                 
 $this-Email-from=$this-data['Question']['email'];
                                 $this-Email-subject='Query from website';
                                 $this-Email-sendAs='both';
                                 $this-Email-template='default';
                                 $this-Email-layout='default';
                                 $this-Email-delivery='mail';
                                 $this-set('Question', 
 $this-data['Question']);

                                 if($this-Email-send()){
                                         
 $this-Session-setFlash(__('Successful_query', true));
                                         $this-render('/questions/send', 
 'small');
                                 }
                                 else{
                                         
 $this-Session-setFlash(__('Email_problem', true));
                                         $this-render('/questions/send', 
 'small');
                                 }

                         }
                         else{
                                 $this-render('/questions/send', 'small');
                         }
                 }
                 else{
                         $this-data['Question']['about']=$id;
                         $this-render('/questions/send', 'small');
                 }

         }

 Any suggestions ???

 On Jul 1, 1:16 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  Ok, thanks for the help.  I'm not sure yet if I am going to switch or
  not yet, as it does work kinda, just not all the way.  Probably will
  later actually

  Thanks,
  Jonah

  On Jun 30, 3:07 pm, r0mk1n [EMAIL PROTECTED] wrote:

   no, you can use it anywhere you want ( with correct options of
   course )

   On Jul 1, 1:03 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

Question, will using SMTP as you suggested still work once I upload it
to dreamhost?

On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

 I can use mail() with localhost.  I set up the php.ini to do it and it
 works fine.  I also got it to work with theemailcomponent, but only
 if I don't contain  or  characters, that is my problem.

 On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote:

  this string $this-smtpOptions .  must be:
  $this-Email-smtpOptions = array(  'port'= 25, 'host' =
  'yourSMTPServer', 'username'='yourUserName',
  'password'='yourSMTPPassword', 'timeout' = 30 );

  Sorry :(

  On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote:

   you are trying tosendvia PHPs mail function ( default method in
  Emailcomponent ), but you can`t do it from localhost ;)
   better way -sendvia SMTP

   1. you need to setup smtp delivery:

   $this-Email-delivery = 'smtp';

   2. setup SMTP params:

   $this-smtpOptions = array(  'port'= 25, 'host' = 
   'yourSMTPServer',
   'username'='yourUserName', 

Re: Email component won't send

2008-07-02 Thread senser

No success :(

I tried to put quotes but didn't help:
$this-Email-replyTo=''.$this-data['Question']['name'].' '.$this-
data['Question']['email'].'';
$this-Email-from=''.$this-data['Question']['name'].' '.$this-
data['Question']['email'].'';

I read the source of email component trying to figure the problem but
there's a little portion I can't understand  -  function send
returns this return $this-$__method();.

I would appreciate any directions and suggestions.

Thanks!

On Jul 3, 2:08 am, lmuszkie [EMAIL PROTECTED] wrote:
 Jonah:

 Try putting your name in quotes:

 $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';

 -luke

 On Jul 2, 1:13 pm, senser [EMAIL PROTECTED] wrote:

  Hello,

  I have similar problem withemailcomponent- php mail function works
  fine but Cake can'tsendemailthrough built-incomponent.
  Here is debug output::

  To: [EMAIL PROTECTED]
  From: [EMAIL PROTECTED]
  Subject: Query from website
  Header:

  From: [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  X-Mailer: CakePHPEmailComponent
  Content-Type: multipart/alternative; boundary=alt-

  Content-Transfer-Encoding: 7bitParameters:

  Message:

  --alt-
  Content-Type: text/plain; charset=utf-8
  Content-Transfer-Encoding: 7bit

  Query from
 Email
  Phone

  Query

  --alt-
  Content-Type: text/html; charset=utf-8
  Content-Transfer-Encoding: 7bit

  Query from
 Email:
  Phone

  Query
          --alt---

  And here is the content of my controller:

  functionsend($id=null){

                  $this-layout='small';

                  if(!empty($this-data['Question'])){
                          $this-Question-set($this-data['Question']);
                          if($this-Question-validates()){
                                  if(!empty($this-data['Question']['id'])){
                                          
  $this-Question-bindModel(array('belongsTo'=array('Offer')));
                                          $this-Question-Offer-set('id', 
  $this-data['Question']['id']);
                                          
  if($this-Question-Offer-exists()){
                                                  
  $this-data['Question']['about']=$id;
                                          }
                                          else{
                                                  
  unset($this-data['Question']['about']);
                                          }
                                  }

                                  $this-Email-to='[EMAIL PROTECTED]';
                                  
  $this-Email-replyTo=$this-data['Question']['email'];
                                  
  $this-Email-from=$this-data['Question']['email'];
                                  $this-Email-subject='Query from website';
                                  $this-Email-sendAs='both';
                                  $this-Email-template='default';
                                  $this-Email-layout='default';
                                  $this-Email-delivery='mail';
                                  $this-set('Question', 
  $this-data['Question']);

                                  if($this-Email-send()){
                                          
  $this-Session-setFlash(__('Successful_query', true));
                                          $this-render('/questions/send', 
  'small');
                                  }
                                  else{
                                          
  $this-Session-setFlash(__('Email_problem', true));
                                          $this-render('/questions/send', 
  'small');
                                  }

                          }
                          else{
                                  $this-render('/questions/send', 'small');
                          }
                  }
                  else{
                          $this-data['Question']['about']=$id;
                          $this-render('/questions/send', 'small');
                  }

          }

  Any suggestions ???

  On Jul 1, 1:16 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

   Ok, thanks for the help.  I'm not sure yet if I am going to switch or
   not yet, as it does work kinda, just not all the way.  Probably will
   later actually

   Thanks,
   Jonah

   On Jun 30, 3:07 pm, r0mk1n [EMAIL PROTECTED] wrote:

no, you can use it anywhere you want ( with correct options of
course )

On Jul 1, 1:03 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

 Question, will using SMTP as you suggested still work once I upload it
 to dreamhost?

 On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  I can use mail() with localhost.  I set up the php.ini to do it and 
  it
  works fine.  I also got it to work with theemailcomponent, but only
  if I don't contain  or  characters, that is my problem.

  On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote:

   this string $this-smtpOptions .  must be:
   

Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah

Ok, I went through the email component code and removed the '@' sign
from the mail function to show error messages, and so now it gives
this error:

Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0
=?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after '=?UTF-8?
B??=' [CORE\cake\libs\controller\components\email.php, line 667]

And this is what it ran (I put a little echo in it to see what it was
putting into the mail() function) to get the error:
mail(poppitypopATgmailDOTcom, =?UTF-8?B?
V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff here ,
From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: =?UTF-8?B??= X-
Mailer: CakePHP Email Component Content-Type: text/plain;
charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

So I conclude the problem is the ?UTF-8?B??.  Which is probably
something I can not fix myself.  This is a bug.  Could someone make a
ticket for this?  hehe, I really have no idea how to use trac,
otherwise I would do it myself...


On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:
 Note the =?UTF-8?B??= bits. There seems to be a lot of that going
 on. I don't know if anyone's figured out the cause yet but I suggest
 you check Trac.

 On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  I am having a problem with the email component.  I am trying to get it
  to send a simple text email.  I have set up the layouts and
  templates.  But for some reason it will not send.  nor will it throw
  an error.  I am using WAMP, and set up the php.ini to send email
  correctly as far as I can tell.  The funny thing is that the php
  mail() function DOES work, just not the email component.
  Here is the code in the controller:http://bin.cakephp.org/view/2104639841
  could somone glance at it?

  Thanks,
  Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah

Update:  I figured out I can get it to work if I remove all  and 

$this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';
$this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').'';
$this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').'';

changed to this:

$this-Email-from = 'noreply@'.env('HTTP_HOST');
$this-Email-replyTo = 'noreply@'.env('HTTP_HOST');
$this-Email-return = 'noreply@'.env('HTTP_HOST');

Now it works, but of course now I can't supply a name.  Is there a
better solution?

On Jun 30, 12:09 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:
 Ok, I went through the email component code and removed the '@' sign
 from the mail function to show error messages, and so now it gives
 this error:

 Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0
 =?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after '=?UTF-8?
 B??=' [CORE\cake\libs\controller\components\email.php, line 667]

 And this is what it ran (I put a little echo in it to see what it was
 putting into the mail() function) to get the error:
 mail(poppitypopATgmailDOTcom, =?UTF-8?B?
 V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff here ,
 From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: =?UTF-8?B??= X-
 Mailer: CakePHP Email Component Content-Type: text/plain;
 charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

 So I conclude the problem is the ?UTF-8?B??.  Which is probably
 something I can not fix myself.  This is a bug.  Could someone make a
 ticket for this?  hehe, I really have no idea how to use trac,
 otherwise I would do it myself...

 On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:

  Note the =?UTF-8?B??= bits. There seems to be a lot of that going
  on. I don't know if anyone's figured out the cause yet but I suggest
  you check Trac.

  On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL PROTECTED] 
  wrote:

   I am having a problem with the email component.  I am trying to get it
   to send a simple text email.  I have set up the layouts and
   templates.  But for some reason it will not send.  nor will it throw
   an error.  I am using WAMP, and set up the php.ini to send email
   correctly as far as I can tell.  The funny thing is that the php
   mail() function DOES work, just not the email component.
   Here is the code in the controller:http://bin.cakephp.org/view/2104639841
   could somone glance at it?

   Thanks,
   Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component won't send

2008-06-30 Thread r0mk1n

you are trying to send via PHPs mail function ( default method in
Email component ), but you can`t do it from localhost ;)
better way - send via SMTP

1. you need to setup smtp delivery:

$this-Email-delivery = 'smtp';

2. setup SMTP params:

$this-smtpOptions = array(  'port'= 25, 'host' = 'yourSMTPServer',
'username'='yourUserName', 'password'='yourSMTPPassword', 'timeout'
= 30 );

3. Sending  ;)

To get SMTP settings you need to get email relay information from your
hosting support (server, username and password)

P.S. with standart component you can`t send your emails via relay
servers that using TLS or SSL connections ( like gmail.com ), to do
this you need using some like ShiftMailer


On Jun 30, 11:14 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:
 Update:  I figured out I can get it to work if I remove all  and 

 $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';
 $this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').'';
 $this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').'';

 changed to this:

 $this-Email-from = 'noreply@'.env('HTTP_HOST');
 $this-Email-replyTo = 'noreply@'.env('HTTP_HOST');
 $this-Email-return = 'noreply@'.env('HTTP_HOST');

 Now it works, but of course now I can't supply a name.  Is there a
 better solution?

 On Jun 30, 12:09 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  Ok, I went through the email component code and removed the '@' sign
  from the mail function to show error messages, and so now it gives
  this error:

  Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0
  =?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after '=?UTF-8?
  B??=' [CORE\cake\libs\controller\components\email.php, line 667]

  And this is what it ran (I put a little echo in it to see what it was
  putting into the mail() function) to get the error:
  mail(poppitypopATgmailDOTcom, =?UTF-8?B?
  V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff here ,
  From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: =?UTF-8?B??= X-
  Mailer: CakePHP Email Component Content-Type: text/plain;
  charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

  So I conclude the problem is the ?UTF-8?B??.  Which is probably
  something I can not fix myself.  This is a bug.  Could someone make a
  ticket for this?  hehe, I really have no idea how to use trac,
  otherwise I would do it myself...

  On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:

   Note the =?UTF-8?B??= bits. There seems to be a lot of that going
   on. I don't know if anyone's figured out the cause yet but I suggest
   you check Trac.

   On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL PROTECTED] 
   wrote:

I am having a problem with the email component.  I am trying to get it
to send a simple text email.  I have set up the layouts and
templates.  But for some reason it will not send.  nor will it throw
an error.  I am using WAMP, and set up the php.ini to send email
correctly as far as I can tell.  The funny thing is that the php
mail() function DOES work, just not the email component.
Here is the code in the 
controller:http://bin.cakephp.org/view/2104639841
could somone glance at it?

Thanks,
Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component won't send

2008-06-30 Thread r0mk1n

this string $this-smtpOptions .  must be:
$this-Email-smtpOptions = array(  'port'= 25, 'host' =
'yourSMTPServer', 'username'='yourUserName',
'password'='yourSMTPPassword', 'timeout' = 30 );

Sorry :(

On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote:
 you are trying to send via PHPs mail function ( default method in
 Email component ), but you can`t do it from localhost ;)
 better way - send via SMTP

 1. you need to setup smtp delivery:

 $this-Email-delivery = 'smtp';

 2. setup SMTP params:

 $this-smtpOptions = array(  'port'= 25, 'host' = 'yourSMTPServer',
 'username'='yourUserName', 'password'='yourSMTPPassword', 'timeout'
 = 30 );

 3. Sending  ;)

 To get SMTP settings you need to get email relay information from your
 hosting support (server, username and password)

 P.S. with standart component you can`t send your emails via relay
 servers that using TLS or SSL connections ( like gmail.com ), to do
 this you need using some like ShiftMailer

 On Jun 30, 11:14 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  Update:  I figured out I can get it to work if I remove all  and 

  $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';
  $this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').'';
  $this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').'';

  changed to this:

  $this-Email-from = 'noreply@'.env('HTTP_HOST');
  $this-Email-replyTo = 'noreply@'.env('HTTP_HOST');
  $this-Email-return = 'noreply@'.env('HTTP_HOST');

  Now it works, but of course now I can't supply a name.  Is there a
  better solution?

  On Jun 30, 12:09 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

   Ok, I went through the email component code and removed the '@' sign
   from the mail function to show error messages, and so now it gives
   this error:

   Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0
   =?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after '=?UTF-8?
   B??=' [CORE\cake\libs\controller\components\email.php, line 667]

   And this is what it ran (I put a little echo in it to see what it was
   putting into the mail() function) to get the error:
   mail(poppitypopATgmailDOTcom, =?UTF-8?B?
   V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff here ,
   From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: =?UTF-8?B??= X-
   Mailer: CakePHP Email Component Content-Type: text/plain;
   charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

   So I conclude the problem is the ?UTF-8?B??.  Which is probably
   something I can not fix myself.  This is a bug.  Could someone make a
   ticket for this?  hehe, I really have no idea how to use trac,
   otherwise I would do it myself...

   On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:

Note the =?UTF-8?B??= bits. There seems to be a lot of that going
on. I don't know if anyone's figured out the cause yet but I suggest
you check Trac.

On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL PROTECTED] 
wrote:

 I am having a problem with the email component.  I am trying to get it
 to send a simple text email.  I have set up the layouts and
 templates.  But for some reason it will not send.  nor will it throw
 an error.  I am using WAMP, and set up the php.ini to send email
 correctly as far as I can tell.  The funny thing is that the php
 mail() function DOES work, just not the email component.
 Here is the code in the 
 controller:http://bin.cakephp.org/view/2104639841
 could somone glance at it?

 Thanks,
 Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah

I can use mail() with localhost.  I set up the php.ini to do it and it
works fine.  I also got it to work with the email component, but only
if I don't contain  or  characters, that is my problem.

On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote:
 this string $this-smtpOptions .  must be:
 $this-Email-smtpOptions = array(  'port'= 25, 'host' =
 'yourSMTPServer', 'username'='yourUserName',
 'password'='yourSMTPPassword', 'timeout' = 30 );

 Sorry :(

 On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote:

  you are trying to send via PHPs mail function ( default method in
  Email component ), but you can`t do it from localhost ;)
  better way - send via SMTP

  1. you need to setup smtp delivery:

  $this-Email-delivery = 'smtp';

  2. setup SMTP params:

  $this-smtpOptions = array(  'port'= 25, 'host' = 'yourSMTPServer',
  'username'='yourUserName', 'password'='yourSMTPPassword', 'timeout'
  = 30 );

  3. Sending  ;)

  To get SMTP settings you need to get email relay information from your
  hosting support (server, username and password)

  P.S. with standart component you can`t send your emails via relay
  servers that using TLS or SSL connections ( like gmail.com ), to do
  this you need using some like ShiftMailer

  On Jun 30, 11:14 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

   Update:  I figured out I can get it to work if I remove all  and 

   $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';
   $this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').'';
   $this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').'';

   changed to this:

   $this-Email-from = 'noreply@'.env('HTTP_HOST');
   $this-Email-replyTo = 'noreply@'.env('HTTP_HOST');
   $this-Email-return = 'noreply@'.env('HTTP_HOST');

   Now it works, but of course now I can't supply a name.  Is there a
   better solution?

   On Jun 30, 12:09 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

Ok, I went through the email component code and removed the '@' sign
from the mail function to show error messages, and so now it gives
this error:

Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0
=?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after '=?UTF-8?
B??=' [CORE\cake\libs\controller\components\email.php, line 667]

And this is what it ran (I put a little echo in it to see what it was
putting into the mail() function) to get the error:
mail(poppitypopATgmailDOTcom, =?UTF-8?B?
V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff here ,
From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: =?UTF-8?B??= X-
Mailer: CakePHP Email Component Content-Type: text/plain;
charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

So I conclude the problem is the ?UTF-8?B??.  Which is probably
something I can not fix myself.  This is a bug.  Could someone make a
ticket for this?  hehe, I really have no idea how to use trac,
otherwise I would do it myself...

On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:

 Note the =?UTF-8?B??= bits. There seems to be a lot of that going
 on. I don't know if anyone's figured out the cause yet but I suggest
 you check Trac.

 On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL 
 PROTECTED] wrote:

  I am having a problem with the email component.  I am trying to get 
  it
  to send a simple text email.  I have set up the layouts and
  templates.  But for some reason it will not send.  nor will it throw
  an error.  I am using WAMP, and set up the php.ini to send email
  correctly as far as I can tell.  The funny thing is that the php
  mail() function DOES work, just not the email component.
  Here is the code in the 
  controller:http://bin.cakephp.org/view/2104639841
  could somone glance at it?

  Thanks,
  Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah

Question, will using SMTP as you suggested still work once I upload it
to dreamhost?

On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:
 I can use mail() with localhost.  I set up the php.ini to do it and it
 works fine.  I also got it to work with the email component, but only
 if I don't contain  or  characters, that is my problem.

 On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote:

  this string $this-smtpOptions .  must be:
  $this-Email-smtpOptions = array(  'port'= 25, 'host' =
  'yourSMTPServer', 'username'='yourUserName',
  'password'='yourSMTPPassword', 'timeout' = 30 );

  Sorry :(

  On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote:

   you are trying to send via PHPs mail function ( default method in
   Email component ), but you can`t do it from localhost ;)
   better way - send via SMTP

   1. you need to setup smtp delivery:

   $this-Email-delivery = 'smtp';

   2. setup SMTP params:

   $this-smtpOptions = array(  'port'= 25, 'host' = 'yourSMTPServer',
   'username'='yourUserName', 'password'='yourSMTPPassword', 'timeout'
   = 30 );

   3. Sending  ;)

   To get SMTP settings you need to get email relay information from your
   hosting support (server, username and password)

   P.S. with standart component you can`t send your emails via relay
   servers that using TLS or SSL connections ( like gmail.com ), to do
   this you need using some like ShiftMailer

   On Jun 30, 11:14 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

Update:  I figured out I can get it to work if I remove all  and 

$this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';
$this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').'';
$this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').'';

changed to this:

$this-Email-from = 'noreply@'.env('HTTP_HOST');
$this-Email-replyTo = 'noreply@'.env('HTTP_HOST');
$this-Email-return = 'noreply@'.env('HTTP_HOST');

Now it works, but of course now I can't supply a name.  Is there a
better solution?

On Jun 30, 12:09 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

 Ok, I went through the email component code and removed the '@' sign
 from the mail function to show error messages, and so now it gives
 this error:

 Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0
 =?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after '=?UTF-8?
 B??=' [CORE\cake\libs\controller\components\email.php, line 667]

 And this is what it ran (I put a little echo in it to see what it was
 putting into the mail() function) to get the error:
 mail(poppitypopATgmailDOTcom, =?UTF-8?B?
 V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff here ,
 From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: =?UTF-8?B??= X-
 Mailer: CakePHP Email Component Content-Type: text/plain;
 charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

 So I conclude the problem is the ?UTF-8?B??.  Which is probably
 something I can not fix myself.  This is a bug.  Could someone make a
 ticket for this?  hehe, I really have no idea how to use trac,
 otherwise I would do it myself...

 On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:

  Note the =?UTF-8?B??= bits. There seems to be a lot of that going
  on. I don't know if anyone's figured out the cause yet but I suggest
  you check Trac.

  On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL 
  PROTECTED] wrote:

   I am having a problem with the email component.  I am trying to 
   get it
   to send a simple text email.  I have set up the layouts and
   templates.  But for some reason it will not send.  nor will it 
   throw
   an error.  I am using WAMP, and set up the php.ini to send email
   correctly as far as I can tell.  The funny thing is that the php
   mail() function DOES work, just not the email component.
   Here is the code in the 
   controller:http://bin.cakephp.org/view/2104639841
   could somone glance at it?

   Thanks,
   Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component won't send

2008-06-30 Thread r0mk1n

no, you can use it anywhere you want ( with correct options of
course )

On Jul 1, 1:03 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:
 Question, will using SMTP as you suggested still work once I upload it
 to dreamhost?

 On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  I can use mail() with localhost.  I set up the php.ini to do it and it
  works fine.  I also got it to work with the email component, but only
  if I don't contain  or  characters, that is my problem.

  On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote:

   this string $this-smtpOptions .  must be:
   $this-Email-smtpOptions = array(  'port'= 25, 'host' =
   'yourSMTPServer', 'username'='yourUserName',
   'password'='yourSMTPPassword', 'timeout' = 30 );

   Sorry :(

   On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote:

you are trying to send via PHPs mail function ( default method in
Email component ), but you can`t do it from localhost ;)
better way - send via SMTP

1. you need to setup smtp delivery:

$this-Email-delivery = 'smtp';

2. setup SMTP params:

$this-smtpOptions = array(  'port'= 25, 'host' = 'yourSMTPServer',
'username'='yourUserName', 'password'='yourSMTPPassword', 'timeout'
= 30 );

3. Sending  ;)

To get SMTP settings you need to get email relay information from your
hosting support (server, username and password)

P.S. with standart component you can`t send your emails via relay
servers that using TLS or SSL connections ( like gmail.com ), to do
this you need using some like ShiftMailer

On Jun 30, 11:14 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

 Update:  I figured out I can get it to work if I remove all  and 

 $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';
 $this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').'';
 $this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').'';

 changed to this:

 $this-Email-from = 'noreply@'.env('HTTP_HOST');
 $this-Email-replyTo = 'noreply@'.env('HTTP_HOST');
 $this-Email-return = 'noreply@'.env('HTTP_HOST');

 Now it works, but of course now I can't supply a name.  Is there a
 better solution?

 On Jun 30, 12:09 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  Ok, I went through the email component code and removed the '@' sign
  from the mail function to show error messages, and so now it gives
  this error:

  Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0
  =?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after 
  '=?UTF-8?
  B??=' [CORE\cake\libs\controller\components\email.php, line 667]

  And this is what it ran (I put a little echo in it to see what it 
  was
  putting into the mail() function) to get the error:
  mail(poppitypopATgmailDOTcom, =?UTF-8?B?
  V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff here ,
  From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: =?UTF-8?B??= 
  X-
  Mailer: CakePHP Email Component Content-Type: text/plain;
  charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

  So I conclude the problem is the ?UTF-8?B??.  Which is probably
  something I can not fix myself.  This is a bug.  Could someone make 
  a
  ticket for this?  hehe, I really have no idea how to use trac,
  otherwise I would do it myself...

  On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:

   Note the =?UTF-8?B??= bits. There seems to be a lot of that 
   going
   on. I don't know if anyone's figured out the cause yet but I 
   suggest
   you check Trac.

   On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL 
   PROTECTED] wrote:

I am having a problem with the email component.  I am trying to 
get it
to send a simple text email.  I have set up the layouts and
templates.  But for some reason it will not send.  nor will it 
throw
an error.  I am using WAMP, and set up the php.ini to send email
correctly as far as I can tell.  The funny thing is that the php
mail() function DOES work, just not the email component.
Here is the code in the 
controller:http://bin.cakephp.org/view/2104639841
could somone glance at it?

Thanks,
Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah

Ok, thanks for the help.  I'm not sure yet if I am going to switch or
not yet, as it does work kinda, just not all the way.  Probably will
later actually

Thanks,
Jonah

On Jun 30, 3:07 pm, r0mk1n [EMAIL PROTECTED] wrote:
 no, you can use it anywhere you want ( with correct options of
 course )

 On Jul 1, 1:03 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  Question, will using SMTP as you suggested still work once I upload it
  to dreamhost?

  On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

   I can use mail() with localhost.  I set up the php.ini to do it and it
   works fine.  I also got it to work with the email component, but only
   if I don't contain  or  characters, that is my problem.

   On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote:

this string $this-smtpOptions .  must be:
$this-Email-smtpOptions = array(  'port'= 25, 'host' =
'yourSMTPServer', 'username'='yourUserName',
'password'='yourSMTPPassword', 'timeout' = 30 );

Sorry :(

On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote:

 you are trying to send via PHPs mail function ( default method in
 Email component ), but you can`t do it from localhost ;)
 better way - send via SMTP

 1. you need to setup smtp delivery:

 $this-Email-delivery = 'smtp';

 2. setup SMTP params:

 $this-smtpOptions = array(  'port'= 25, 'host' = 'yourSMTPServer',
 'username'='yourUserName', 'password'='yourSMTPPassword', 'timeout'
 = 30 );

 3. Sending  ;)

 To get SMTP settings you need to get email relay information from your
 hosting support (server, username and password)

 P.S. with standart component you can`t send your emails via relay
 servers that using TLS or SSL connections ( like gmail.com ), to do
 this you need using some like ShiftMailer

 On Jun 30, 11:14 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote:

  Update:  I figured out I can get it to work if I remove all  and 

  $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').'';
  $this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').'';
  $this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').'';

  changed to this:

  $this-Email-from = 'noreply@'.env('HTTP_HOST');
  $this-Email-replyTo = 'noreply@'.env('HTTP_HOST');
  $this-Email-return = 'noreply@'.env('HTTP_HOST');

  Now it works, but of course now I can't supply a name.  Is there a
  better solution?

  On Jun 30, 12:09 am, Turnquist, Jonah [EMAIL PROTECTED] wrote:

   Ok, I went through the email component code and removed the '@' 
   sign
   from the mail function to show error messages, and so now it gives
   this error:

   Warning (2): mail() [function.mail]: SMTP server response: 550 
   5.1.0
   =?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after 
   '=?UTF-8?
   B??=' [CORE\cake\libs\controller\components\email.php, line 667]

   And this is what it ran (I put a little echo in it to see what it 
   was
   putting into the mail() function) to get the error:
   mail(poppitypopATgmailDOTcom, =?UTF-8?B?
   V2VsY29tZSB0byBvdXIgcmVhbGx5IGNvb2wgdGhpbmc=?=, content stuff 
   here ,
   From: =?UTF-8?B??= Reply-To: =?UTF-8?B??= Return-Path: 
   =?UTF-8?B??= X-
   Mailer: CakePHP Email Component Content-Type: text/plain;
   charset=UTF-8 Content-Transfer-Encoding: 7bit, )'

   So I conclude the problem is the ?UTF-8?B??.  Which is probably
   something I can not fix myself.  This is a bug.  Could someone 
   make a
   ticket for this?  hehe, I really have no idea how to use trac,
   otherwise I would do it myself...

   On Jun 28, 5:11 am, b logica [EMAIL PROTECTED] wrote:

Note the =?UTF-8?B??= bits. There seems to be a lot of that 
going
on. I don't know if anyone's figured out the cause yet but I 
suggest
you check Trac.

On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL 
PROTECTED] wrote:

 I am having a problem with the email component.  I am trying 
 to get it
 to send a simple text email.  I have set up the layouts and
 templates.  But for some reason it will not send.  nor will 
 it throw
 an error.  I am using WAMP, and set up the php.ini to send 
 email
 correctly as far as I can tell.  The funny thing is that the 
 php
 mail() function DOES work, just not the email component.
 Here is the code in the 
 controller:http://bin.cakephp.org/view/2104639841
 could somone glance at it?

 Thanks,
 Jonah
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, 

Re: email component utf-8 body

2008-06-29 Thread bujanga

Yes, that is where I started. I then set it using charset in:
 function _ggisSendMail(){
   $this-Email-charset = 'iso-8859-15';
   $this-Email-to = '[EMAIL PROTECTED]';
   $this-Email-subject = 'Test';
   $this-Email-from = '[EMAIL PROTECTED]';
   $this-Email-layout = 'default';
   $this-Email-template = 'test';
   $this-Email-sendAs = 'text';
   $this-Email-send();
}

Why? When it is not set, I was getting a subject of
=?UTF-8?B?V2VsY29tZ... with no body at all. Searching led me to:
  http://marcgrabanski.com/article/cakephp-email-encoding

I will try again with the nightly build on a different server.
Follow-up post with results shortly.

Gary



On Sat, Jun 28, 2008 at 6:59 AM, b logica [EMAIL PROTECTED] wrote:

 Well, did you at least try removing the 8859 one?

 On Fri, Jun 27, 2008 at 3:11 PM, bujanga [EMAIL PROTECTED] wrote:

 Yes, I saw that but do not know why. Instead of using the Email
 Component, I went back to sending the email via straight php. A little
 ugly but it gives me no problems. Headers from that show:

 Content-Type: text/plain; charset=UTF-8

 I will likely dig into this once I find time and am running on sweet RC2. 
 Yeah!

 Gary



 On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


 


 


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



Re: email component utf-8 body

2008-06-29 Thread bujanga

Email Component works fine on my production server with latest cake
build. hmm. That's all for tonight though.

Gary



On Sun, Jun 29, 2008 at 11:03 PM, bujanga [EMAIL PROTECTED] wrote:
 Yes, that is where I started. I then set it using charset in:
  function _ggisSendMail(){
   $this-Email-charset = 'iso-8859-15';
   $this-Email-to = '[EMAIL PROTECTED]';
   $this-Email-subject = 'Test';
   $this-Email-from = '[EMAIL PROTECTED]';
   $this-Email-layout = 'default';
   $this-Email-template = 'test';
   $this-Email-sendAs = 'text';
   $this-Email-send();
 }

 Why? When it is not set, I was getting a subject of
 =?UTF-8?B?V2VsY29tZ... with no body at all. Searching led me to:
  http://marcgrabanski.com/article/cakephp-email-encoding

 I will try again with the nightly build on a different server.
 Follow-up post with results shortly.

 Gary



 On Sat, Jun 28, 2008 at 6:59 AM, b logica [EMAIL PROTECTED] wrote:

 Well, did you at least try removing the 8859 one?

 On Fri, Jun 27, 2008 at 3:11 PM, bujanga [EMAIL PROTECTED] wrote:

 Yes, I saw that but do not know why. Instead of using the Email
 Component, I went back to sending the email via straight php. A little
 ugly but it gives me no problems. Headers from that show:

 Content-Type: text/plain; charset=UTF-8

 I will likely dig into this once I find time and am running on sweet RC2. 
 Yeah!

 Gary



 On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


 


 



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



Re: email component utf-8 body

2008-06-28 Thread b logica

Well, did you at least try removing the 8859 one?

On Fri, Jun 27, 2008 at 3:11 PM, bujanga [EMAIL PROTECTED] wrote:

 Yes, I saw that but do not know why. Instead of using the Email
 Component, I went back to sending the email via straight php. A little
 ugly but it gives me no problems. Headers from that show:

 Content-Type: text/plain; charset=UTF-8

 I will likely dig into this once I find time and am running on sweet RC2. 
 Yeah!

 Gary



 On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


 


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



Re: Email component won't send

2008-06-28 Thread b logica

Note the =?UTF-8?B??= bits. There seems to be a lot of that going
on. I don't know if anyone's figured out the cause yet but I suggest
you check Trac.

On Fri, Jun 27, 2008 at 11:19 PM, Turnquist, Jonah [EMAIL PROTECTED] wrote:

 I am having a problem with the email component.  I am trying to get it
 to send a simple text email.  I have set up the layouts and
 templates.  But for some reason it will not send.  nor will it throw
 an error.  I am using WAMP, and set up the php.ini to send email
 correctly as far as I can tell.  The funny thing is that the php
 mail() function DOES work, just not the email component.
 Here is the code in the controller: http://bin.cakephp.org/view/2104639841
 could somone glance at it?

 Thanks,
 Jonah
 


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



Re: email component utf-8 body

2008-06-27 Thread bujanga

Yes, I saw that but do not know why. Instead of using the Email
Component, I went back to sending the email via straight php. A little
ugly but it gives me no problems. Headers from that show:

Content-Type: text/plain; charset=UTF-8

I will likely dig into this once I find time and am running on sweet RC2. Yeah!

Gary



On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


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



Re: Email component problem

2008-05-28 Thread Jonathan Snook

On Tue, May 27, 2008 at 12:11 PM, bondo [EMAIL PROTECTED] wrote:
 I'm having problems using the native email component using templates.
 It only seems to send messages to certain email addresses. I'm not
 sure if this is a Cake problem or a web host (hostmonster) problem.
 For example, if I send to my gmail account it works fine. If I send to
 an alternate address, I get nothing. I've tried clearing the cache but
 that didn't help either.

If you're using SMTP, can you check smtpError after the send fails?
You should have the error response code.

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



Re: Email component problem

2008-05-27 Thread 3lancer.eu

Hi,

As for me, it's highly probable that the e-mails get lost due to some
anti-spam filters. Did you try sending it properly, with smtp? Just
create 'noreply' account and have a go...

P.S. Remember to set 'from' field for the smtp, otherwise you may run
into errors.

Piotr
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component problem

2008-05-27 Thread 3lancer.eu

Aaah, you mention that you MUST use sendmail...

Well, possibly answer is in the sendmail logs or the mail headers.

Piotr
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email component problem

2008-05-27 Thread jeff aigner

You might want to check with your hosting company and make sure you
have a PTR record set up for your domain so that other people can do a
reverse lookup on your IP address and have it resolve to your mail
server's domain name.

Many email servers do a reverse lookup on the IP address of the
sending server to see if it resolves to the domain name of the message
sender.

Good Luck :)

sheik

On May 27, 11:11 am, bondo [EMAIL PROTECTED] wrote:
 I'm having problems using the native email component using templates.
 It only seems to send messages to certain email addresses. I'm not
 sure if this is a Cake problem or a web host (hostmonster) problem.
 For example, if I send to my gmail account it works fine. If I send to
 an alternate address, I get nothing. I've tried clearing the cache but
 that didn't help either.

 I have to use sendmail for this task.

 Any help would be greatly appreciated. I've been fighting with this
 for hours and no luck.

 Thanks.
 Bondo.

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



Re: Email Component sends email with empty body

2008-05-20 Thread donnerbeil

Hi!

I couldn't get the delivery=debug working. But I now found out, that
if I set sendAs to 'html' or 'text' instead of 'both' the email is
received with a correct mail body. I finally found this ticket
https://trac.cakephp.org/ticket/1851 that describes something
similiar. But as I use a fresh nightly, that shouldn't be the case.

So the only solution for me is to send Emails in either html or text.

Maybe this thread and all the links help someone to solve similar
problems. If someone has the ultimate solution and can tell me, why
the delivery='debug' didn't work, that would be really great. I just
have to understand what's wrong.

Donnerbeil

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



Re: Email Component sends email with empty body

2008-05-20 Thread Ketan Patel

Hi, for debug... it doesn't print now.. They changed the code for
debug, so now it is only put in the Session variable. So to print out
in the controller just for debugging to do this...

pr($this-Session-read('Message.email'));

Earlier in the code, they had the 'echo $fm' statement which is now
missing, don't know what was the reason to do so. But try the above
and it should work !!


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



Re: Email Component sends email with empty body

2008-05-20 Thread Ketan Patel

There is a delivery option for debug in the EmailComponent.

$this-Email-delivery = 'debug'; //'smtp';

Use that for development and testing of the emails. With 'debug'
option, you will see your email content print out on the page itself
which helps in faster debugging. Once you are happy with output and
sorted out all issues, flip the delivery mode to whatever you wish.



On May 19, 9:54 pm, donnerbeil [EMAIL PROTECTED] wrote:
 Hi!

 I'm using the latest nightly so this is probably not the 
 case:https://trac.cakephp.org/ticket/3820

 But I still receive empty emails. The strangest part is, that it
 depends on the email provider. I have an email account at my own
 domain. I check the mails with Thunderbird (IMAP) and it works. Then I
 have an Email account at freenet.de, a popular email provider in
 germany. When I check the freenet account with thunderbird(Pop3) I get
 an empty email body. When I check the freenet account via the
 webinterface, I can read the body but it's not formatted correctly. It
 shows the headers then.

 I followed exactly the instructions 
 here:http://manual.cakephp.org/view/269/sending-a-basic-message

 I assume, that it has maybe something to do with utf8 encoding.
 Because when I check the freenet mail with Thunderbird and manually
 set the encoding for the mail  to utf8 in Thunderbird, then I can at
 least read the email, but still only with all the headers in it.

 I'm trying to fix this for over a week now. My whole web app is
 working, but I need to send an email with an activation code for the
 new users. So please help me fix this last issue.

 Thanks a lot for any help.

 Donnerbeil
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component sends email with empty body

2008-05-20 Thread donnerbeil

Hi!

Here is my send function in users_controller.php
The $id is given from another function. I debug($id) and it's ok.


function _sendNewUserMail($id) {
$User = $this-User-read(null,$id);
$this-Email-to = '[EMAIL PROTECTED]';
$this-Email-bcc = array('[EMAIL PROTECTED]');  // note
  // this could
be just a string too
$this-Email-subject = 'Welcome to our really cool thing';
$this-Email-replyTo = '[EMAIL PROTECTED]';
$this-Email-from = '[EMAIL PROTECTED]';
$this-Email-template = 'activate'; // note no '.ctp'
//Send as 'html', 'text' or 'both' (default is 'text')
$this-Email-sendAs = 'both'; // because we like to send pretty
mail
//Set view variables as normal
$this-set('User', $User);
//Do not pass any args to send()
$this-Email-send();
 }

The app\views\elements\email\html\activate.ctp

pDear ?php echo $User['User']['username'] ?,br /
 nbsp;nbsp;nbsp;Thank you for your interest./p

The app\views\elements\email\text\activate.ctp

Dear ?php echo $User['User']['username'] ?,
   Thank you for your interest.

The app\views\layouts\email\html\default.ctp
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
body
?php echo $content_for_layout; ?
/body
/html

The app\views\layouts\email\text\default.ctp

?php echo $content_for_layout; ?


So my layout is default.ctp and my element/template is activate.ctp.
Is that a problem? Or do I have to specifically set the layout
somewhere?

I also found this yesterday:http://marcgrabanski.com/tags.php?
tag=CakePHP

This could be a problem, since my users_controller.php is encoded in
utf8 because of some special chars in $this-Session-setFlash();

Setting $this-Email-charset = 'iso-8859-15'; didn't help

I'm confused

Donnerbeil

Also my DB is utf8 encoded. And my subject is also changed to
something like, =?UTF-8?B?V2VsY29tZ...

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



Re: Email Component sends email with empty body

2008-05-20 Thread donnerbeil

@Ketan

My new send function looks now like that:

function _sendNewUserMail($id) {
$User = $this-User-read(null,$id);
$this-Email-to = '[EMAIL PROTECTED]';
$this-Email-bcc = array('[EMAIL PROTECTED]');  //
note
  // this
could
be just a string too
$this-Email-subject = 'Welcome to our really cool
thing';
$this-Email-replyTo = '[EMAIL PROTECTED]';
$this-Email-from = '[EMAIL PROTECTED]';
$this-Email-template = 'activate'; // note no '.ctp'
//Send as 'html', 'text' or 'both' (default is 'text')
$this-Email-sendAs = 'both'; // because we like to send
pretty
mail
//Set view variables as normal
$this-set('User', $User);
//Do not pass any args to send()
$this-Email-delivery='debug';
$this-Email-send();
 }


The emails aren't send any more, but I don't get any debug output. In
core.php, the debug level is set to 2.
What am I doing wrong? When I remove $this-Email-delivery='debug';
the emails are sent again. Where is the debug output. Also looked in
the html-sourcecode, to  check if it's hidden somewhere. nope, it's
just not there.

Donnerbeil

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



Re: Email Component

2008-05-19 Thread cooked

Thanks for the reply I will try out the debug and let you know what I
see. I am
use version 1.2 the latest available for download.

On May 16, 10:45 pm, b logica [EMAIL PROTECTED] wrote:
 Weird. It might be worth putting a die(debug($View)) statement in
 EmailComponent::__renderTemplate() just after it's set. After the
 layout is set on it, actually.

 What version are you using?

 On Fri, May 16, 2008 at 7:51 PM, cooked [EMAIL PROTECTED] wrote:

  Sorry about not supplying the context. Here is the code snippet from
  my Controller.

 var $component= array('Email');

 function join()
 {
   if (!empty($this-data)) {
 
 
 if ($this-Player-save($this-data)) {
  $this-sendJoinEmail($this-data['Player']
  ['email'],
   $this-data['Player']
  ['activation_code']);
  }
}
 }

 function sendJoinEmail($emailaddr, $code)
 {
 $this-Email-to = $emailaddr;
 $this-Email-subject = 'Fremont Tennis Ladder Activation Code';
 $this-Email-replyTo = '[EMAIL PROTECTED]';
 $this-Email-from= 'Tennis Ladder';
 $this-Email-template = 'welcome';
 $this-set('code', $code);
 $this-Email-send();
 }

  On May 16, 4:12 pm, b logica [EMAIL PROTECTED] wrote:
  I think the obvious question is, how are you specifying the path to
  your template?

  On Fri, May 16, 2008 at 1:48 PM, cooked [EMAIL PROTECTED] wrote:

   I have seeing a weird issue with theemailcomponent. Theemailare
   being sent
   but with a message that the template file is not found. For some
   reason cake is trying to
   find the template in
   .../app/views/views/elements/email/text/welcome.ctp.

   As you can see there is an extra views in the path. Can someone let
   me why
   is this hapening. Is this a known bug?

   Thanks- Hide quoted text -

  - Show quoted text -

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



Re: Email Component sends email with empty body

2008-05-19 Thread Brian Rojas

The most obvious problem would be that you aren't setting the Email-
template correctly.  This happened to me cause i misspelt the
template.  You should check that, also pls send code if that is not
problem so can investigate better.

On May 19, 8:54 pm, donnerbeil [EMAIL PROTECTED] wrote:
 Hi!

 I'm using the latest nightly so this is probably not the 
 case:https://trac.cakephp.org/ticket/3820

 But I still receive empty emails. The strangest part is, that it
 depends on the email provider. I have an email account at my own
 domain. I check the mails with Thunderbird (IMAP) and it works. Then I
 have an Email account at freenet.de, a popular email provider in
 germany. When I check the freenet account with thunderbird(Pop3) I get
 an empty email body. When I check the freenet account via the
 webinterface, I can read the body but it's not formatted correctly. It
 shows the headers then.

 I followed exactly the instructions 
 here:http://manual.cakephp.org/view/269/sending-a-basic-message

 I assume, that it has maybe something to do with utf8 encoding.
 Because when I check the freenet mail with Thunderbird and manually
 set the encoding for the mail  to utf8 in Thunderbird, then I can at
 least read the email, but still only with all the headers in it.

 I'm trying to fix this for over a week now. My whole web app is
 working, but I need to send an email with an activation code for the
 new users. So please help me fix this last issue.

 Thanks a lot for any help.

 Donnerbeil

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



Re: Email Component

2008-05-16 Thread b logica

I think the obvious question is, how are you specifying the path to
your template?

On Fri, May 16, 2008 at 1:48 PM, cooked [EMAIL PROTECTED] wrote:

 I have seeing a weird issue with the email component. The email are
 being sent
 but with a message that the template file is not found. For some
 reason cake is trying to
 find the template in
 .../app/views/views/elements/email/text/welcome.ctp.

 As you can see there is an extra views in the path. Can someone let
 me why
 is this hapening. Is this a known bug?

 Thanks

 


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



Re: Email Component

2008-05-16 Thread cooked

Sorry about not supplying the context. Here is the code snippet from
my Controller.

var $component = array('Email');

function join()
{
  if (!empty($this-data)) {


if ($this-Player-save($this-data)) {
 $this-sendJoinEmail($this-data['Player']
['email'],
  $this-data['Player']
['activation_code']);
 }
   }
}

function sendJoinEmail($emailaddr, $code)
{
$this-Email-to = $emailaddr;
$this-Email-subject = 'Fremont Tennis Ladder Activation Code';
$this-Email-replyTo = '[EMAIL PROTECTED]';
$this-Email-from= 'Tennis Ladder';
$this-Email-template = 'welcome';
$this-set('code', $code);
$this-Email-send();
}


On May 16, 4:12 pm, b logica [EMAIL PROTECTED] wrote:
 I think the obvious question is, how are you specifying the path to
 your template?



 On Fri, May 16, 2008 at 1:48 PM, cooked [EMAIL PROTECTED] wrote:

  I have seeing a weird issue with the email component. The email are
  being sent
  but with a message that the template file is not found. For some
  reason cake is trying to
  find the template in
  .../app/views/views/elements/email/text/welcome.ctp.

  As you can see there is an extra views in the path. Can someone let
  me why
  is this hapening. Is this a known bug?

  Thanks- Hide quoted text -

 - Show quoted text -

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



Re: Email Component

2008-05-16 Thread b logica

Weird. It might be worth putting a die(debug($View)) statement in
EmailComponent::__renderTemplate() just after it's set. After the
layout is set on it, actually.

What version are you using?

On Fri, May 16, 2008 at 7:51 PM, cooked [EMAIL PROTECTED] wrote:

 Sorry about not supplying the context. Here is the code snippet from
 my Controller.

var $component = array('Email');

function join()
{
  if (!empty($this-data)) {


if ($this-Player-save($this-data)) {
 $this-sendJoinEmail($this-data['Player']
 ['email'],
  $this-data['Player']
 ['activation_code']);
 }
   }
}

function sendJoinEmail($emailaddr, $code)
{
$this-Email-to = $emailaddr;
$this-Email-subject = 'Fremont Tennis Ladder Activation Code';
$this-Email-replyTo = '[EMAIL PROTECTED]';
$this-Email-from= 'Tennis Ladder';
$this-Email-template = 'welcome';
$this-set('code', $code);
$this-Email-send();
}


 On May 16, 4:12 pm, b logica [EMAIL PROTECTED] wrote:
 I think the obvious question is, how are you specifying the path to
 your template?



 On Fri, May 16, 2008 at 1:48 PM, cooked [EMAIL PROTECTED] wrote:

  I have seeing a weird issue with the email component. The email are
  being sent
  but with a message that the template file is not found. For some
  reason cake is trying to
  find the template in
  .../app/views/views/elements/email/text/welcome.ctp.

  As you can see there is an extra views in the path. Can someone let
  me why
  is this hapening. Is this a known bug?

  Thanks- Hide quoted text -

 - Show quoted text -

 


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



Re: Email Component uses SMTP not sending...

2008-04-24 Thread JaMoyFriends

hmmmmine uses, a template tooo...i think b logica has the closest
answer...im still not sure

On Apr 23, 3:05 am, aranworld [EMAIL PROTECTED] wrote:
 Are you using the latest nightly build?

 There is a bug in the beta release from January that prevents the Mail
 component from sending a mail unless you actually use a template file.

 The bug has been fixed in the SVN releases.

 https://trac.cakephp.org/ticket/3820

 On Apr 22, 10:04 am, b logica [EMAIL PROTECTED] wrote:

  You said that switching to SMTP caused it to stop working. What
  transfer method did you use with PHPMailer?

  There are a number of reasons why this might not work, from no MTA
  being available, to a missing relayhost (or SMART_HOST for sendmail).

  On Tue, Apr 22, 2008 at 8:23 AM, JaMoyFriends [EMAIL PROTECTED] wrote:

i dont think that's the issue, maybe it is but i dont see how that
could help.
i can properly send it with PHPMailer, with the same credentials i
gave cake.

the only problem is, it isnt sending.

i have no idea if cake got authenticated or anything, but PHPmailer
did.
i dont want to use PHPmailer as a solution, its my last resort.

On Apr 22, 1:40 pm, b logica [EMAIL PROTECTED] wrote:
 What OS are you using. What MTA do you have installed? To use SMtP you
 need to have a daemon available that knows where to connect on the
 outside to send your mail out.

 For example,  on a stock Fedora box with sendmail MTA you may need to
 edit your sendmail.mc as root or equiv:

 DO NOT EDIT sendmail.cf
 # cd /etc/mail
 # cp sendmail{.cf,cf.BAK}
 # vi sendmail.mc  - note the .mc

 edit the line with SMART_HOST:
 define(`SMART_HOST', `smtp.your_isp.com')dnl

 Put whatever your ISP provides you to get your regular email.

 # make -C /etc/mail
 # service sendmail restart

 Other linux flavours may have things in another place but for sendmail
 this is the basic idea. For Postfix, you want to set relayhost

 For Windows , I don't have a clue (and don't want to).

On Mon, Apr 21, 2008 at 9:23 PM, Schuchert [EMAIL PROTECTED] wrote:

   I would like to add that I am having the exact same issue. I am
   actively looking for a fix also.

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



Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-24 Thread jonathan.snook

On Apr 22, 9:56 pm, Schuchert [EMAIL PROTECTED] wrote:
 Could this be the reason that my html messages only come in as text?

To be honest, I'm not sure. I'd probably have to pick apart the code
to understand for sure. Try the MIME-Version header and see what
happens. I'm leaning towards an issue with how the component is
building the multi-part email, rendering the html as text.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component uses SMTP not sending...

2008-04-22 Thread JaMoyFriends

i dont think that's the issue, maybe it is but i dont see how that
could help.
i can properly send it with PHPMailer, with the same credentials i
gave cake.

the only problem is, it isnt sending.

i have no idea if cake got authenticated or anything, but PHPmailer
did.
i dont want to use PHPmailer as a solution, its my last resort.


On Apr 22, 1:40 pm, b logica [EMAIL PROTECTED] wrote:
 What OS are you using. What MTA do you have installed? To use SMtP you
 need to have a daemon available that knows where to connect on the
 outside to send your mail out.

 For example,  on a stock Fedora box with sendmail MTA you may need to
 edit your sendmail.mc as root or equiv:

 DO NOT EDIT sendmail.cf
 # cd /etc/mail
 # cp sendmail{.cf,cf.BAK}
 # vi sendmail.mc  - note the .mc

 edit the line with SMART_HOST:
 define(`SMART_HOST', `smtp.your_isp.com')dnl

 Put whatever your ISP provides you to get your regular email.

 # make -C /etc/mail
 # service sendmail restart

 Other linux flavours may have things in another place but for sendmail
 this is the basic idea. For Postfix, you want to set relayhost

 For Windows , I don't have a clue (and don't want to).

 On Mon, Apr 21, 2008 at 9:23 PM, Schuchert [EMAIL PROTECTED] wrote:

   I would like to add that I am having the exact same issue. I am
   actively looking for a fix also.

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



Re: Email Component uses SMTP not sending...

2008-04-22 Thread b logica

You said that switching to SMTP caused it to stop working. What
transfer method did you use with PHPMailer?

There are a number of reasons why this might not work, from no MTA
being available, to a missing relayhost (or SMART_HOST for sendmail).

On Tue, Apr 22, 2008 at 8:23 AM, JaMoyFriends [EMAIL PROTECTED] wrote:

  i dont think that's the issue, maybe it is but i dont see how that
  could help.
  i can properly send it with PHPMailer, with the same credentials i
  gave cake.

  the only problem is, it isnt sending.

  i have no idea if cake got authenticated or anything, but PHPmailer
  did.
  i dont want to use PHPmailer as a solution, its my last resort.



  On Apr 22, 1:40 pm, b logica [EMAIL PROTECTED] wrote:
   What OS are you using. What MTA do you have installed? To use SMtP you
   need to have a daemon available that knows where to connect on the
   outside to send your mail out.
  
   For example,  on a stock Fedora box with sendmail MTA you may need to
   edit your sendmail.mc as root or equiv:
  
   DO NOT EDIT sendmail.cf
   # cd /etc/mail
   # cp sendmail{.cf,cf.BAK}
   # vi sendmail.mc  - note the .mc
  
   edit the line with SMART_HOST:
   define(`SMART_HOST', `smtp.your_isp.com')dnl
  
   Put whatever your ISP provides you to get your regular email.
  
   # make -C /etc/mail
   # service sendmail restart
  
   Other linux flavours may have things in another place but for sendmail
   this is the basic idea. For Postfix, you want to set relayhost
  
   For Windows , I don't have a clue (and don't want to).
  


  On Mon, Apr 21, 2008 at 9:23 PM, Schuchert [EMAIL PROTECTED] wrote:
  
 I would like to add that I am having the exact same issue. I am
 actively looking for a fix also.

  


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



Re: Email Component uses SMTP not sending...

2008-04-22 Thread aranworld

Are you using the latest nightly build?

There is a bug in the beta release from January that prevents the Mail
component from sending a mail unless you actually use a template file.

The bug has been fixed in the SVN releases.

https://trac.cakephp.org/ticket/3820



On Apr 22, 10:04 am, b logica [EMAIL PROTECTED] wrote:
 You said that switching to SMTP caused it to stop working. What
 transfer method did you use with PHPMailer?

 There are a number of reasons why this might not work, from no MTA
 being available, to a missing relayhost (or SMART_HOST for sendmail).

 On Tue, Apr 22, 2008 at 8:23 AM, JaMoyFriends [EMAIL PROTECTED] wrote:

   i dont think that's the issue, maybe it is but i dont see how that
   could help.
   i can properly send it with PHPMailer, with the same credentials i
   gave cake.

   the only problem is, it isnt sending.

   i have no idea if cake got authenticated or anything, but PHPmailer
   did.
   i dont want to use PHPmailer as a solution, its my last resort.

   On Apr 22, 1:40 pm, b logica [EMAIL PROTECTED] wrote:
What OS are you using. What MTA do you have installed? To use SMtP you
need to have a daemon available that knows where to connect on the
outside to send your mail out.

For example,  on a stock Fedora box with sendmail MTA you may need to
edit your sendmail.mc as root or equiv:

DO NOT EDIT sendmail.cf
# cd /etc/mail
# cp sendmail{.cf,cf.BAK}
# vi sendmail.mc  - note the .mc

edit the line with SMART_HOST:
define(`SMART_HOST', `smtp.your_isp.com')dnl

Put whatever your ISP provides you to get your regular email.

# make -C /etc/mail
# service sendmail restart

Other linux flavours may have things in another place but for sendmail
this is the basic idea. For Postfix, you want to set relayhost

For Windows , I don't have a clue (and don't want to).

   On Mon, Apr 21, 2008 at 9:23 PM, Schuchert [EMAIL PROTECTED] wrote:

  I would like to add that I am having the exact same issue. I am
  actively looking for a fix also.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-22 Thread Schuchert

You sir, are a savior.

It wasn't on line 750 for the version I had but it did work
beautifully.

Now, I have to get my messages to pass the SPAM filters of my ISP.

Thanks again Jonathan.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-22 Thread Schuchert

I spoke too soon. The SMTP issue is fixed but my html formatted
messages still come through as text.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-22 Thread Schuchert


Should MIME-Version: 1.0 be included when using both but without
attachments? I looked at the source for most of the html emails I have
gotten lately and they all had MIME-Version: 1.0 in their header
area.

Could this be the reason that my html messages only come in as text?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-21 Thread Federico Rinaldi
I had a similar problem when I was sending the email with $this-Email-send
('bBody of my email/b').The email was sent in text format. But then I
changed to the template way.

$this-Email-template = 'myTemplate';
$this-set('someValue', 'bBody of my email/b');

And it started sending emails in HTML format. Hope this helps!

eyesonly.

On Sun, Apr 20, 2008 at 10:29 PM, Schuchert [EMAIL PROTECTED] wrote:


 I am having trouble with the email component in 1.2. I have tried both
 1.2.0.6311 and I tried 1.2.0.7705.

 I followed the example here: http://book.cakephp.org/view/176/email
 and everytime I try and send an html email I only get the html source
 and not a render html message. From what I understand if I set $this-
 Email-sendAs = 'html'  it should automatically use the html version
 of my layout and email element, is that correct? It appears to pick
 the html element but again, I only see the html as source code.

 My second issue is anytime I try and send a message using smtp the
 to,from, reply-to, subject, etc are all in the TO field when it
 arrives in my mailbox. The actual subject comes in blank. The message
 has the same issues as described above.

 Has anyone gotten the email component to work correctly with html
 emails and/or smtp?


 Thanks.


 


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



Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-21 Thread Schuchert

You on Windows? This seems like a newline problem.

Nope, not on Windows.



 I had a similar problem when I was sending the email with $this-Email-send
 ('bBody of my email/b').The email was sent in text format. But then I
 changed to the template way.

 $this-Email-template = 'myTemplate';
 $this-set('someValue', 'bBody of my email/b');

 And it started sending emails in HTML format. Hope this helps!

I will try specifying the template. I thought that it would know to
use the html one if i chose html as the 'sendAs'
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component uses SMTP not sending...

2008-04-21 Thread Schuchert

I would like to add that I am having the exact same issue. I am
actively looking for a fix also.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-21 Thread Schuchert

I tried specifying the template and it was a no go. It still sends in
text format.

I also switched back to smtp and everything is being jammed into the
TO field.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



  1   2   >