Mail Class Error |
(06-11-2020, 01:40 PM)jreklund Wrote: What settings are you using? There are three types of mail "clients"; mail, sendmail and smtp.I'm using smtp the full config is: $email = \Config\Services::email(); $config['protocol'] = 'smtp'; $config['mailPath'] = '/usr/sbin/sendmail'; $config['SMTPHost'] = 'cherry.ukhost4u.com'; $config['SMTPUser'] = '[email protected]'; $config['SMTPPass'] = 'xxxxxxxxxxxxx'; $config['SMTPPort'] = '465'; $config['SMTPCrypto'] = 'ssl'; (or tls either should work) $config['mailType'] = 'html'; (or text, either should work) $email->initialize($config); $email->setFrom('[email protected]'); //('[email protected]', 'Your Name') $email->setTo('[email protected]'); //('[email protected]') $email->setSubject('test'); //('Email Test') $email->setMessage('try this for size'); //('Testing the email class.') $email->send(false); print_r($email->printDebugger(['body'])); |
Messages In This Thread |
Mail Class Error - by 68thorby68 - 06-11-2020, 12:04 PM
RE: Mail Class Error - by jreklund - 06-11-2020, 01:40 PM
RE: Mail Class Error - by 68thorby68 - 06-11-2020, 05:13 PM
RE: Mail Class Error - by InsiteFX - 06-12-2020, 02:59 AM
RE: Mail Class Error - by 68thorby68 - 06-12-2020, 03:35 AM
RE: Mail Class Error - by dave friend - 06-13-2020, 09:46 AM
RE: Mail Class Error - by jreklund - 06-12-2020, 08:39 AM
RE: Mail Class Error - by dave friend - 06-12-2020, 06:48 PM
|