Getting Postman SMTP to work with Custom Form
-
Hi,
Was hoping someone could assist me in amending the code for emailing Online Form that has been custom made.
I recently installed Postman SMTP as our website has other forms in use as well and we needed to utilise SMTP with OAuth 2.0. This has now stopped our Online Application page from sending us an email with the details.
Below is the current code for Email settings:
////////////////email settings///////////////////////////////////////////
$emailTo = ‘[email protected]’;
////////////////////////////////////////////////////////////////////////
//$emailTo = get_option(‘tz_email’);
$subject = ‘New Online Application from Cashflow It’;
$body = $str;
$headers = ‘From: [email protected]’ . “\r\n” . ‘Reply-To: [email protected] :’;add_filter(‘wp_mail_content_type’,create_function(”, ‘return “text/html”;’));
wp_mail($emailTo, $subject, $body, $headers, $attachments);
$emailSent = true;
////////////////////////////////////////////////////////////////////////Is someone able to advise what code needs to be replaced here so that this form utilises WP Mail SMTP instead.
To visit the actual page – https://www.cashflowit.com.au/online-application-form/
Thank you.
- The topic ‘Getting Postman SMTP to work with Custom Form’ is closed to new replies.