I pasted this code in the functions.php of my theme and edit the shortcodes (my-name etc):
function my_easymail_add_subscriber ( $cf7 ) {
$fields['email'] = $cf7->posted_data["your-email"];
$fields['name'] = trim($cf7->posted_data["your-name"]. " ". $cf7->posted_data["your-surname"]);
if ( function_exists ('alo_em_add_subscriber') && is_email( $fields['email'] ) )
{
alo_em_add_subscriber( $fields, 1, alo_em_get_language(true) );
}
return $cf7;
}
add_action( 'wpcf7_before_send_mail', 'my_easymail_add_subscriber' );
But nothing happend. Is there something wrong?