Could not instantiate mail function
This error has been troubling me for a while since I can not replicate it outside of Vanilla. My current setup:
- Not using an SMTP server
- name of the sender is specified
- email of the sender is specified
When attempting to send an email Vanilla will always complain it
Can not instantiate the mail function. I have checked I can send emails through the mail function on the command line with the following script and it works as expected.
<?php $to = "[email protected]"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "[email protected]"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
I am at a loss what to try next given that with debugging on I am getting nothing useful out of Vanilla about why the error is occuring.