Error "Could not instantiate mail function"

SupportError "Could not instantiate mail function"
Newbie Staff asked 3 years ago
Hi, i have the below error Error "Could not instantiate mail function" even the test mail does not go through, do you have any ideas what may be wrong
1 Answers
Nikola Loncar Staff answered 3 years ago
Hi, your hosting doesn't have configured mail support in PHP. In that case you will have to add some kind of SMTP plugin to your site. Easiest way to test if you have such support is to try getting any email from your WP site. For example to reset password. If you don't receive email then there is no mail support inside PHP code. Best regards, Nikola
Newbie Staff replied 3 years ago

Thank you for getting back to me, i have managed to install the SMTP plugin and the mail service does work, i notice only users within my domain don’t get the emails, and shows an smtp error, and also gmail users don’t get email, but no errors show.

also a new issue that i have seen come up last night, the admin email now does not get the booking confirmation, but gets “#confirm# instead

Nikola Loncar Staff replied 3 years ago

You need to use HTML way of formatting email instead of plain text. Regarding errors please check what is email address that is put as senders address. That needs to match address of that SMTP account that is used.

Best regards,
Nikola

Newbie Staff replied 3 years ago

the admin section was always working with the ” #confirm# ” all of a sudden its only this one that does not function, clients get correct pending, confirmation and cancel, senders address is correct, i may have found why this happens is because i am also using outlook exchange

Newbie Staff replied 3 years ago

i would like admin to get the “confirm” or “cancel” appointment, but it does not function anymore

Nikola Loncar Staff replied 3 years ago

Hi, can you please try using this in mail template #url_confirm# #url_cancel# and see if then it will be shown fine?

Best regards,
Nikola

Newbie Staff replied 3 years ago

yes i have tried these and they pull show fine, it just that i would like to see the whole appointment