• When submitting a form I get a message, translated to English: “An error occured when sending your message. Try again later.”.

    I have not made any changes to the settings lately making me suspect that something must have changed during an upgrade in WordPress (I have enable automatic upgrade of WordPress). So this error message just started appearing and was reported by our customers yesterday (21.01.2023).

    Though there is a long delay, the form does get submitted and mail does get sent.

    I am using WP Mail SMTP plugin for the mail handling (but using standard PHP sendmail). The plugin reports the following error message: “Mailer: Default (none). PHPMailer was able to connect to SMTP server but failed while trying to send an email”. When I try to create a test mail with this plugin I get more info:

    Versions:
    
    WordPress: 6.1.1
    
    WordPress MS: No
    
    PHP: 8.1.14
    
    WP Mail SMTP: 3.7.0
    
    Params:
    
    Mailer: mail
    
    Constants: No
    
    Server:
    
    PHP.mail(): Yes
    
    PHPMailer Debug:
    
    Could not instantiate mail function.
    
    Debug:
    
    Email Source: Contact Form 7
    
    Mailer: Default (none)
    
    PHPMailer was able to connect to SMTP server but failed while trying to send an email.
    
    Email Source: WP Mail SMTP
    
    Mailer: Default (none)
    
    PHPMailer was able to connect to SMTP server but failed while trying to send an email.
    
    Contact Form 7:
    
    Versjon: 5.7.2
    
     

    If I try to disable the WP Mail SMTP I still get the same error message when submitting the Contact Form 7 form but submitting and mail sending still works (just like when WP Mail SMTP handles the mail sending).

    I have enabled WP debugging but get no valuable information from the debug log.

    Any hint on how to debug and correct this issue is much appreciated!

    • This topic was modified 2 years, 1 month ago by acharseth.
    • This topic was modified 2 years, 1 month ago by acharseth.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when submitting form’ is closed to new replies.