Posted on Leave a comment

Lean and Mean PHP Email Class


( ! ) Notice: A non well formed numeric value encountered in /var/www/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Call Stack
#TimeMemoryFunctionLocation
10.0003396136{main}( ).../index.php:0
20.0005396424require( '/var/www/html/wp-blog-header.php' ).../index.php:17
31.370612484712require_once( '/var/www/html/wp-includes/template-loader.php' ).../wp-blog-header.php:19
41.380712537688include( '/var/www/html/wp-content/themes/storefront/single.php' ).../template-loader.php:78
51.494113091328get_template_part( ).../single.php:19
61.494113091848locate_template( ).../general-template.php:168
71.494213091944load_template( ).../template.php:671
81.494213092216require( '/var/www/html/wp-content/themes/storefront/content-single.php' ).../template.php:724
91.495213092968do_action( ).../content-single.php:21
101.495213093344WP_Hook->do_action( ).../plugin.php:465
111.495213093344WP_Hook->apply_filters( ).../class-wp-hook.php:310
121.498113100856storefront_post_content( ).../class-wp-hook.php:286
131.498213101928the_content( ).../storefront-template-functions.php:414
141.498313102184apply_filters( ).../post-template.php:247
151.498313102584WP_Hook->apply_filters( ).../plugin.php:208
161.506613175608CrayonWP::the_content( ).../class-wp-hook.php:286
171.511013241448CrayonHighlighter->output( ).../crayon_wp.class.php:703
181.519313270600CrayonFormatter::print_code( ).../crayon_highlighter.class.php:189

( ! ) Notice: A non well formed numeric value encountered in /var/www/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Call Stack
#TimeMemoryFunctionLocation
10.0003396136{main}( ).../index.php:0
20.0005396424require( '/var/www/html/wp-blog-header.php' ).../index.php:17
31.370612484712require_once( '/var/www/html/wp-includes/template-loader.php' ).../wp-blog-header.php:19
41.380712537688include( '/var/www/html/wp-content/themes/storefront/single.php' ).../template-loader.php:78
51.494113091328get_template_part( ).../single.php:19
61.494113091848locate_template( ).../general-template.php:168
71.494213091944load_template( ).../template.php:671
81.494213092216require( '/var/www/html/wp-content/themes/storefront/content-single.php' ).../template.php:724
91.495213092968do_action( ).../content-single.php:21
101.495213093344WP_Hook->do_action( ).../plugin.php:465
111.495213093344WP_Hook->apply_filters( ).../class-wp-hook.php:310
121.498113100856storefront_post_content( ).../class-wp-hook.php:286
131.498213101928the_content( ).../storefront-template-functions.php:414
141.498313102184apply_filters( ).../post-template.php:247
151.498313102584WP_Hook->apply_filters( ).../plugin.php:208
161.506613175608CrayonWP::the_content( ).../class-wp-hook.php:286
171.511013241448CrayonHighlighter->output( ).../crayon_wp.class.php:703
181.519313270600CrayonFormatter::print_code( ).../crayon_highlighter.class.php:189

Sending beautiful emails and attaching files with PHP can be a real hassle. I wrote this class as part of one of my side projects but I have recently used it as a teaching tool.