How do attached files with CF7 >3.9
-
Hello,
I am upgrading CF7 plugin and i notice a lot of custom function are not working anymore. Some issues i could solve by using
$submission = WPCF7_Submission::get_instance(); if ($submission) { $posted_data = $submission->get_posted_data(); }
But i don’t know how to skip_mail and attach files
old way$cf7->skip_mail = 1; $cf7->uploaded_files
Also what is the proper way for to use $mail2
$mail2 = $cf7->prop( 'mail_2' ); //get CF7's mail_2 object //now set sender's address to mail2's recipient $mail2['body'] .= '<p>An extra paragraph at the end!</p>'.set_email_styled_en(); $mail2['recipient'] = $posted_data['visitor_email'];//<-- is this correct
Any pointers, tips?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How do attached files with CF7 >3.9’ is closed to new replies.