FW: [SMARTY] Re: Forms Generation / Validation with mimemessage --M.Lemos

From: Date: Fri, 19 Mar 2004 22:44:14 +0000
Subject: FW: [SMARTY] Re: Forms Generation / Validation with mimemessage --M.Lemos
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11150@lists.php.net to get a copy of this message
-----Original Message----- From: UpFront Technology [mailto:upfronttechnology@rrohio.com] Sent: Friday, March 19, 2004 4:40 PM To: Manuel Lemos Subject: RE: [SMARTY] Re: Forms Generation / Validation with mimemessage --M.Lemos Thanks. I am still unclear as to the syntax. How can I read the form output into a text string? $variable_to_hold_the_form_data_string=FormCaptureOutput([$not sure here],array[not sure here]) ?????????????????????????????????????? -----Original Message----- From: Manuel Lemos [mailto:mlemos@acm.org] Sent: Friday, March 19, 2004 4:11 AM To: smarty-general@lists.php.net Subject: [SMARTY] Re: Forms Generation / Validation with mimemessage --M.Lemos Hello, On 03/18/2004 10:53 PM, Upfront Technology wrote: > Could I get an example of "just use the forms class output as text > string and feed to the e-mail class"? I know this uses "FormCaptureOutput", > but I can't get the structure right. > > something like: > > $variable_to_hold_the_form_data_string=FormCaptureOutput([$not sure > here],array[not sure here]); > > this (I believe) is then passed to the "CreateQuotedPrintableTextPart" > method (this code would replace $subscription->ReadOnly=1; in the forms > example): > > /**********************/ > <? > [required variables, etc] > > $email_message->CreateQuotedPrintableTextPart($email_message->WrapText($vari > able_to_hold_the_form_data_string),"",$text_part) The forms are in HTML, so you should use the example of sending HTML messages of the MIME message class. HTML messages should have an alternative text part or else spam filters may reject your message. The HTML mail example demonstrates how to compose and send a message with both text and HTML alternative parts. The text part should be created with CreateQuotedPrintableTextPart function and the HTML part with CreateQuotedPrintableHTMLPart. As text part you may just specify a text to warn users of plain text only e-mail programs. As HTML part you speciy a string that has the HTML of a page with the forms class output within it. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#11150) next »