• Resolved snikolictech

    (@snikolictech)


    Downloaded the recent update and noticed that mail sends twice.

    I fixed it in vscf-form.php by commenting out the redundant wp_mail call (the conditional executes the function and then checks it so the prior call isn’t useful):

    			/* wp_mail($to, $subject, $message, $headers); */ 
    			
    			if(wp_mail($to, $subject, $message, $headers) == true) ... 
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    Thanks for informing me. I noticed the same (received submissions twice)… I was not aware the conditional also executed the wp_mail function. I should have know better. I will update plugin asap.

    You think there’s a better way to do this check? Please let me know!

    Guido

    Plugin Author Guido

    (@guido07111975)

    Guess this will work (it should return true):

    
    if( wp_mail($to, $subject, $message, $headers) ) { 
    	// submission send
    } else {
    	// submission not send
    }
    

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘(Bug) Mail Sending Twice’ is closed to new replies.