Jump to content
Sign in to follow this  

Help with email automation - Email Sending Failed - Could not instantiate mail function.

Recommended Posts

Hi, whenever I try to run verification emails manually or during signup, or whenever I try and send the welcome emails it never sends. I then go to the activity log and that is what shows up.

Email Sending Failed - Could not instantiate mail function.


Is there any way to fix this. Ive also tried using SMTP but didn't fix it


Share this post

Link to post
Share on other sites

Hi @wesley98morgan

The 'Could not instantiate mail function' error means you are using the PHPMail() 'Mail Type' option. The PHP Mail function uses the servers "mail" function which is not always reliable, nor does it generate a friendly error. Could not instantiate mail function means that when attempting to send the email, the server rejected it.

Refer to points 2 & 3 here for suggestions on the type of server-configuration changes which could resolve this: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#could-not-instantiate-mail-function

Switching to SMTP under Setup > General Settings > Mail tab would allow you to have more descriptive errors when an issue does occur and is usually more reliable when sending emails. The $smtp_debug line can then be added to the configuration.php file to see the full log from the server: http://docs.whmcs.com/Email_Sending_Issues#Troubleshooting

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated