Re: [SMARTY] new plugin: mailto

From: Date: Tue, 21 May 2002 18:39:13 +0000
Subject: Re: [SMARTY] new plugin: mailto
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4337@lists.php.net to get a copy of this message
Monte, That looks great. Nice piece of functionality. Might I suggest adding the following to accomodate cc, bcc and subject? //these lines should be placed after the $text assignment //and before the encode check $mail_parms = array(); if (!empty($cc)) { $mail_parms[] = 'cc='.rawurlencode($cc); } if (!empty($bcc)) { $mail_parms[] = 'bcc='.rawurlencode($bcc); } if (!empty($subject)) { $mail_parms[] = 'subject='.rawurlencode($subject); } for ($i=0; $i<count($mail_parms); $i++) { $mail_parm_vals .= (0==$i) ? '?' : '&'; $mail_parm_vals .= $mail_parms[$i]; } $address .= $mail_parm_vals; __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com

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