[eluser]Unknown[/eluser]
Hi all,
I have an installation of ExpressionEngine and CodeIgnitor and i am having an issue sending an email via smtp via a contact form.
I performed a test via the Tools > Communicate and that worked fine.
I have created a contact us form and on submission (using Ajax) i want to send the email via a separate sendmail.php script located on the root of the website. The sendmail.php performs form validation and then sends the email.
I would like to send the mail using the same settings in the admin but i am struggling to do that.I dont want to use mail() as we need to authenticate via smtp.
Any help would be greatly appreciated.
Many thanks