Jump to content

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

 

Link to comment
Share on other sites

  • WHMCS Technical Analyst II

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

Link to comment
Share on other sites

  • 3 years later...
On 26/7/2019 at 16:13, wesley98morgan said:

Ciao, ogni volta che provo a eseguire le email di verifica manualmente o durante la registrazione, o ogni volta che provo a inviare le email di benvenuto che non invia mai. Quindi vado al registro delle attività ed è quello che viene visualizzato.

Invio e-mail non riuscito: impossibile creare un'istanza della funzione di posta.

 

C'è un modo per risolvere questo problema. Ho anche provato a utilizzare SMTP ma non l'ho risolto

 

I deleted the extra contact and it worked.

Link to comment
Share on other sites

On 7/26/2019 at 4:13 PM, wesley98morgan said:

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

 

I deleted the extra contact and it worked.

Link to comment
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.

Guest
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.

  • 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