How do I convert from sending email as html to just plain text?

thread: 4 messages  |  last: a year ago  |  started: friday, march 19, 2010, 1:35 pm pdt


#1  |  kingwithin (San Francisco, CA) United States of America
Friday, March 19, 2010, 1:35 PM PDT

Right now, I am sending emails with the following (some excerpted):

$this->objMessage->ReadTemplate(__TEMPLATES_MAIL__ . '/invite.html');
$this->objMessage->HtmlBody = $this->objMessage->ApplyVariablesToTemplate($variablesArray);
        

$this->objMessage->From = $this->objUser->FullName .'<noreply@domain.com>';
$this->objMessage->To = $this->txtEmail->Text;
QEmailServer::Send($this->objMessage);
.bc
#2  |  VexedPanda (Calgary, AB) Canada
Friday, March 19, 2010, 2:35 PM PDT

You can set the TextBody as well, or just the TextBody if you'd like..?

#3  |  kingwithin (San Francisco, CA) United States of America
Friday, March 19, 2010, 4:24 PM PDT

Hi, what does that mean?  How do I do that?  Is there a link to example/doc?

#4  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Friday, March 19, 2010, 5:14 PM PDT

   $objMessage->Body = 'Plain Text';
   $objMessage->HtmlBody = 'Html';

Example is here:

http://examples.qcodo.com/examples/communication/email.php



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.