wordpress - Contact Form 7 sometimes doesn't work -


My contact form in some time does not work well in 7 other tasks

I get a message : Failed to send your message Please try later or contact the administrator by some other method

I tried debugging it and found that CF7 will call wp_mail.

This will call this code from contact form 7:

  if (sent to $) {return @wp_mail ($ recipient, $ theme, $ body, $ headers, $ Attachments);  

Edit:

When it calls wp_mail, then it's wordpress code This part will throw error in:

  if (! $ This-> smtp-> Data ($ header. $ Body)) {new phpmailerException ($ this-> ; Lang ('data_not_accepted'), auto :: STOP_CRITICAL); }  

Edit:

This data function will call the "sendComand" function in the first row:

  Public Function Data ($ msg_data) {If (! $ This- & gt; Send Command ('Data', 'Data', 354)) {Return False; } .....  

If in this situation it fails.

Function is sent to:

  Secure function sendCommand ($ Command, $ commandstring, $ Expected) {If (! $ This-> Connect (! )) {$ This-> Error = array ("error" => "$ command calls without connecting"); return false; } $ This- & gt; Client_send ($ string command. Auto :: cflf); $ Answer = $ it- & gt; Meets (); $ Code = substr ($ answer, 0, 3); If ($ this-> do_debug> = 2) {$ this-> Edebug ('SMTP - & gt; from server:'. $ Answer); } If (! In_array ($ code is expected, $ array)) {$ this-> Last_reply = null; $ This- & gt; Error = array ("error" = & gt; "$ command command failed", "smtp_code" = & gt; $ code, "extension" => substr ($ answer, 4)); If ($ this-> do_debug> = 1) {$ this-> Edebug ('SMTP - & gt; error:'. $ This-> error ['error']. ':'. $ Answer); }         return false; } .......  

And if this situation will fail in the last position, then (! In_array is expected ($ code, $ array) The status will be correct.

Therefore send $ the sender function was made available on the call:

  $ this- & gt; Send Command ('data', 'data' , 354) (Array) is expected) == Array ([0] => 354)  

And the $ code we get from get_lines () function:

  $ answer = $ this-> Get_lines (); $ Code = substr ($ answer, 0, 3);  

The next value if this $ answer fails is:

  $ answer = 550 5.4.5 Exceeded daily quota quoting. U1sm14669850qat.27 - GSMTP  

and get_lines () source here:

I have solved this problem before using this plugin and going to SMTP on Gmail:

You set it up It is necessary to have a Gmail account, if this is a client / work website, you can create a free account with Gmail and simply enter it in the plugin settings.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -