While the contact form is functioning – messages are being delivered to the recipient email’s spam folder.
Our server operator has raised the following solution;
‘I would highly recommend using a script that sends through SMTP, using an existing mailbox and authenticating with username and password on port 587 using TLS encryption. We can provide a hostname if needed. This way the emails are being sent properly from a mail server and we can check the log files in case any of them fail or aren’t delivered.’
What do I need to alter within the existing code to carry this out?