[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
[Code source] [Imprimer] [Statistiques]
functions_email.php Processes all email activities from Zen Cart Hooks into phpMailer class for actual email encoding and sending
Copyright: | Copyright 2003-2006 Zen Cart Development Team |
Copyright: | Portions Copyright 2003 osCommerce |
License: | http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 |
Version: | $Id: functions_email.php 6540 2007-07-01 19:41:08Z drbyte $ |
Poids: | 526 lignes (29 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
zen_mail($to_name, $to_address, $email_subject, $email_text, $from_email_name, $from_email_address, $block=array() X-Ref |
Send email (text/html) using MIME. This is the central mail function. The SMTP Server should be configured correctly in php.ini param: string $to_name The name of the recipient, e.g. "Jim Johanssen" param: string $to_email_address The eMail address of the recipient, e.g. john.smith@hzq.com param: string $email_subject The subject of the eMail param: string $email_text The text of the eMail, may contain HTML entities param: string $from_email_name The name of the sender, e.g. Shop Administration param: string $from_email_adrdess The eMail address of the sender, e.g. info@myzenshop.com param: array $block Array containing values to be inserted into HTML-based email template param: string $module The module name of the routine calling zen_mail. Used for html template selection and email archiving. param: array $attachments_list Array of attachment names/mime-types to be included (this portion still in testing, and not fully reliable) |
zen_mail_archive_write($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject, $email_html, $email_text, $module) X-Ref |
zen_mail_archive_write() this function stores sent emails into a table in the database as a log record of email activity. This table CAN get VERY big! To disable this function, set the "Email Archives" switch to 'false' in ADMIN! See zen_mail() function description for more details on the meaning of these parameters param: string $to_name param: string $to_email_address param: string $from_email_name param: string $from_email_address param: string $email_subject param: string $email_html param: array $email_text param: string $module |
zen_build_html_email_from_template($module='default',$block='') X-Ref |
select email template based on 'module' (supplied as param to function) selectively go thru each template tag and substitute appropriate text finally, build full html content as "return" output from class |
email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='') X-Ref |
Function to build array of additional email content collected and sent on admin-copies of emails: |
zen_validate_email($email) X-Ref |
validates an email address Sample Valid Addresses: first.last@host.com firstlast@host.to "first last"@host.com "first@last"@host.com first-last@host.com first's-address@email.host.4somewhere.com first.last@[123.123.123.123] hosts with either external IP addresses or from 2-6 characters will pass (e.g. .jp or .museum) Invalid Addresses: first last@host.com 'first@host.com param: string The email address to validate return: booloean true if valid else false |
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |