Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 4998

SenatorJ on "Getting WP Mail SMTP to work with Custom Form"

$
0
0

Hi,

Was hoping someone could assist me in amending the code for emailing Online Form that has been custom made.

I recently installed WP Mail 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 out Online Application page from sending us an email with the details.

Below is the current code for Email settings:

////////////////email settings///////////////////////////////////////////

$emailTo = 'applications@cashflowit.com.au';

////////////////////////////////////////////////////////////////////////

//$emailTo = get_option('tz_email');

$subject = 'New Online Application from Cashflow It';
$body = $str;
$headers = 'From: applications@cashflowit.com.au' . "\r\n" . 'Reply-To: applications@cashflowit.com.au :';

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 - http://www.cashflowit.com.au/online-application-form/

Thank you.

https://wordpress.org/plugins/wp-mail-smtp/


Viewing all articles
Browse latest Browse all 4998

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>