Re: Forms Generation / Validation with mimemessage --M.Lemos

From: Date: Fri, 19 Mar 2004 09:11:06 +0000
Subject: Re: Forms Generation / Validation with mimemessage --M.Lemos
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11149@lists.php.net to get a copy of this message
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

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