Hi Pierre

I guess this one isn't really a Cake question.  Play around with the
'Body' and 'AltBody' variables.  Make sure that the text you are
saving to the fields doesn't contain any HTML (yes, I know that's
obvious!)...

string $AltBody = ""
Sets the text-only body of the message. This automatically sets the
email to multipart/alternative. This body can be read by mail clients
that do not have HTML email capability such as mutt. Clients that can
read HTML will view the normal Body.

string $Body = ""
Sets the Body of the message. This can be either an HTML or text body.
If HTML then run IsHTML(true).


On Jul 16, 1:45 pm, Pierre MARCOURT <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am currently running a Cron file to execute a CakePHP controller.
> The Cron file runs every minute and has to send reminders by email.
> For that, I use PHPMailer and the users receive an HTML email. So it
> works great.
>
> But, at the same time I send a HTML email I need to send a text/plain
> email for text message reminder. The thing is, it keeps sending the
> email in HTML even if I put : $this->Email->sendAs = 'text'; or
> $this->Email->IsHTML(false);
>
> So I tried to send an email via the mail() PHP function but it does not
> works. No email are sent.
> But if i run the Cron file manually, the email will be sent as I want.
>
> Is there something wrong with mail() PHP function in CakePHP ? Or do you
> know what I should do with PHPMailer to send text/plain email ?
>
> Thanks.
>
> --
>  *Pierre MARCOURT*
>
> *IT Department*
>         *CableOrganizer.com*
> 5610 NW 12th Ave, suite 214
> Fort Lauderdale, FL 33304
>
>         Phone: 954-861-6310
> Fax: 954-861-2001
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to