Jump to content

[ Solved ] WireMail::mailHTML does not exist


rafaoski
 Share

Recommended Posts

Hi everyone ...

Generally, this is about the new mailHTML() function that does not work correctly on processwire 3.0.110

https://github.com/processwire/processwire/blob/dev/wire/core/WireMailTools.php#L291
https://processwire.com/api/ref/mail/mail-h-t-m-l/

I do not know if I'm making a mistake trying to send an e-mail or if it's a bug in the core
This is my code:

<?php
// $m = $mail->new(); // option A
// $m = new WireMail(); // option B
   $m = wireMail(); // option C
   $m->mailHTML('alex@gmail.com', 'Hello', '<html><body><h1>Message Body</h1></body></html>');
   $m->send();
?>

wire-mail.thumb.png.64ed184899598883d662c7e5b08f0249.png


Details from Tracy Debugger

SERVER DETAILS
ProcessWire: 3.0.110
PHP: 7.2.8
Webserver: Apache/2.4.34 (Unix)
MySQL: 10.1.34-MariaDB

SERVER SETTINGS
allow_url_fopen: 1
max_execution_time: 120 (changeable)
max_input_nesting_level: 64
max_input_time: 60
max_input_vars: 1000
memory_limit: 256M
post_max_size: 8M
upload_max_filesize: 20M
xdebug:
xdebug.max_nesting_level:
mod_rewrite: 1
mod_security: *confirmed off
GD: 2.2.5
GIF: 1
JPG: 1
PNG: 1
EXIF Support:
FreeType: 1
Imagick Extension:


MODULE DETAILS
TracyDebugger: 4.11.13

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...