I totally agree with Marcin and Jonathan. After spending hours of
frustration with the email component, I used some simple Bakery code
to use the phpMailer library in the vendors folder. Everything was
working within minutes.
From what I have read, the SwiftMailer library is even better than
> 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.
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('sa
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 th
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 th
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::b
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 try
Jonah:
Try putting your name in quotes:
$this->Email->from = '"No Reply" ';
-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
Jonah:
Try putting your name in quotes:
$this->Email->from = '"No Reply" ';
-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
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-
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
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:
>
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
>
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 . " mu
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
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' => '
Update: I figured out I can get it to work if I remove all < and >
$this->Email->from = 'No Reply ';
$this->Email->replyTo = No Reply '';
$this->Email->return = No Reply '';
changed to this:
$this->Email->from = 'noreply@'.env('HTTP_HOST');
$this->Email->replyTo = 'noreply@'.env('HTTP_HOST');
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??=' [CO
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 t
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.
20 matches
Mail list logo