Hi Im going mad with frsutratin over this.
My client is using fasthosts (seem to be notoriously difficult to configure to use email) - and Im using Modx Revo. Basically I have tried using both FormIt and SPForm to send email - I have got further with Spform but I cant send email through a contact form with either of them.
I suspect its because to send email through a webserver with fasthosts, you need to add ’-f’ parameter. i also think I need to use smtp to send the mail.
So, for every instance of:
mail($email_to, $email_subject, $email_message, $headers);
mail($email_to, $email_subject, $email_message, $headers, '-f'.$email_from);
My question is, where do I start? are there likely to be files in Spform I need to adjust to add this parameter?
And what about class.phpmailer.php - found in \core\model\modx\mail\phpmailer
Do these snippets over-ride these settings? and does the modx manager (system settings) over-ride these settings? If i wanted to force smtp, what would I need to change.
But most importantly, how can i add this ’-f’ parameter to the send mail variables?
Any help, please! would be gratefully received, and will get my client to donate to the modx project!
Many thanks.
Dan