New Zenner
- Join Date:
- Sep 2015
- Location:
- Daytona Beach, FL USA
- Posts:
- 69
- Plugin Contributions:
- 0
php mail not working as I want it to
I am trying to add a new php module within the ZC admin folder but emailing not working as expected.
I tried this which works outside of ZC
mail($ToEmail,$subject . ' php mail',$tempTemplate,$headers) ;
and there are no errors but nothing happens when running within ZC with the normal
require('includes/application_top.php');
and
require('includes/configure.php');
It works outside of ZC without the above requires.
I even tried using zen_mail but does do what I need it to do.
.
$aaatex_html_msg['EMAIL_FROM_ADDRESS'] = $fromEmail;
.
zen_mail( '', $ToEmail, $subject , $tempTemplate, "AaaTeX Customer Service", "[email protected]", $aaatex_html_msg,'renewals');
It sends the email but there are 2 issues:
- It doesn't use the from email above but uses the store email address which I do not want.
- It doesn't seem to support Bcc.
So how can I get it to send emails with the from address and Bcc? I think that php mail would be preferable but it does nothing.