Hey there guys,
So, I have a working contact form using phpmailer and smtp connection to receive the e-mails from website and sending autoreply to the person who sent the mail via contact form. Everything is working correctly, but I would like to integrate it with processwire more as now it's kind of too external.
My setup is as follow:
I have the contact form in html as template contact.php
The actual php sending script + phpmailer files are in a folder in my root section
I have this in the contact.php template
<form method="post" action="/test55/php/contact-form.php" id="contact">
to get the php sending script (which is outside processwire)
in the contact-form.php I have this to get the phpmailer file
require "/test55/php/PHPMailerAutoload.php";
I am wondering how could I integrate it within processwire instead of keeping the files outside? I've noticed there are three smtp modules, two based on swiftmailer and one on phpmailer, so far I can't figure it out at all.