diff --git a/demo/build-email-cta.php b/demo/build-email-cta.php new file mode 100644 index 0000000..8cfe8c0 --- /dev/null +++ b/demo/build-email-cta.php @@ -0,0 +1,35 @@ +buildCta( + 'https://github.com/PhantPHP', + 'Github' +); +$bodyHtml .= nl2br( + 'Thank you for your trust, +The Phant team' +); + +$html = $emailBuilder->build( + $bodyHtml, + 'image/logo.png', + 'image/logo.png', + nl2br( + 'Made with passion, in France + © Phant ' . date('Y') + ) +); + +echo $html; diff --git a/demo/build-email-information.php b/demo/build-email-information.php new file mode 100644 index 0000000..3ae24cc --- /dev/null +++ b/demo/build-email-information.php @@ -0,0 +1,29 @@ +Lorem ipsum dolor sit amet + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + +Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. +Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.' +); + +$html = $emailBuilder->build( + $bodyHtml, + 'image/logo.png', + 'image/logo.png', + nl2br( + 'Made with passion, in France + © Phant ' . date('Y') + ) +); + +echo $html; diff --git a/demo/build-email-otp.php b/demo/build-email-otp.php new file mode 100644 index 0000000..300c792 --- /dev/null +++ b/demo/build-email-otp.php @@ -0,0 +1,37 @@ +buildOtp('123456'); +$bodyHtml .= nl2br( + 'This single-use code will expire in 15 minutes. + +Thank you for your trust, +The Phant team' +); +$bodyHtml .= $emailBuilder->buildMeta([ + 'IP address' => $_SERVER['REMOTE_ADDR'], + 'Browser' => $_SERVER['HTTP_USER_AGENT'], + 'Request date' => date('Y/m/d H:i:s'), +]); + +$html = $emailBuilder->build( + $bodyHtml, + 'image/logo.png', + 'image/logo.png', + nl2br( + 'Made with passion, in France + © Phant ' . date('Y') + ) +); + +echo $html; diff --git a/demo/image/logo.png b/demo/image/logo.png new file mode 100644 index 0000000..384e31d Binary files /dev/null and b/demo/image/logo.png differ