//Salesforce Integration with Contact Form 7 add_action( 'wpcf7_before_send_mail', 'my_conversion' ); function my_conversion( $cf7 ) { $email = $cf7->posted_data["your-email"]; $first_name = $cf7->posted_data["your-firstname"]; $last_name = $cf7->posted_data["your-lastname"]; $phone = $cf7->posted_data["your-phone"]; $best_time = $cf7->posted_data["best-time-to-call"]; $post_items[] = 'oid='; $post_items[] = 'first_name=' . $first_name; $post_items[] = 'last_name=' . $last_name; $post_items[] = 'email=' . $email; $post_items[] = 'phone=' . $phone; $post_items[] = ’00NU00000031VX4=’.$best_time; if(!empty($first_name) && !empty($last_name) && !empty($email) ) { $post_string = implode ('&', $post_items); // Create a new cURL resource $ch = curl_init(); if (curl_error($ch) != "") { // error handling } $con_url = 'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8'; curl_setopt($ch, CURLOPT_URL, $con_url); // Set the method to POST curl_setopt($ch, CURLOPT_POST, 1); // Pass POST data curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_string); curl_exec($ch); // Post to Salesforce curl_close($ch); // close cURL resource } } YUAF | Young Urban Arts Foundation

What we have achieved

15,545Engaged In Workshops

10,560Young People Reached Our Media Bus

65Volunteer Opportunities

12Apprenticeships Employed by YUAF