Mail enhancement - html and plain text in one mail

Author Message

Georg Franz

Saturday 15 November 2003 1:55:39 pm

Hi,

at the moment it's only possible to send html or text mails. It would be great if you can do both in mail. The reason: Many freemail web-sites shows at first the text-version. If there isn't a text-version in the mail, the user is forced to click to an extra link which opens the html-mail. In many cases many html-tags are stripped by the freemailers which destroys the design of the mail. Furthermore there are also users who only wants a "text-only" version (not only programmers ;-)

It would be easy to implement this feature. At the moment I use a dirty "hack". (I've created a new "mailtransport" class which sends the $mail-object to the mail-classes from http://www.phpguru.org/mime.mail.html ).

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:25:38
Script start
Timing: Jan 31 2025 00:25:38
Module start 'layout'
Timing: Jan 31 2025 00:25:38
Module start 'content'
Timing: Jan 31 2025 00:25:38
Module end 'content'
Timing: Jan 31 2025 00:25:38
Script end

Main resources:

Total runtime0.5473 sec
Peak memory usage8,192.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2656151.2266
Module start 'layout' 0.00480.0044 739.4922220.7344
Module start 'content' 0.00920.5371 960.22664,374.2656
Module end 'content' 0.54630.0010 5,334.49227.8125
Script end 0.5473  5,342.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6531160.0002
Check MTime0.00130.2285160.0001
Mysql Total
Database connection0.00070.127510.0007
Mysqli_queries0.473386.4750460.0103
Looping result0.00050.0876440.0000
Template Total0.498891.120.2494
Template load0.00200.369420.0010
Template processing0.496790.754720.2484
Template load and register function0.00140.258710.0014
states
state_id_array0.00100.175810.0010
state_identifier_array0.00090.164120.0004
Override
Cache load0.00170.308190.0002
Sytem overhead
Fetch class attribute can translate value0.00160.294710.0016
Fetch class attribute name0.00230.413520.0011
XML
Image XML parsing0.00280.507910.0028
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00430.7936160.0003
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs