Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » mail() function SMTP authentication

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 502 Views
  • Mauro74
    Community Member
    30 Posts

    mail() function SMTP authentication Link to this post

    Hi All,
    My hosting provider (webhosting.uk.com) for security reason has disabled the PHP mail() function requiring to update our code using a SMTP authentication. I have no idea how to change the code, I suppose is in the sapphire folder? At the moment the contact form on my website doesn't send the email to the recipient and the newsletter module fails to send... Can anyone help me in this, or point me in the right direction?
    Thanks in advance

  • MarcusDalgren
    Community Member
    288 Posts

    Re: mail() function SMTP authentication Link to this post

    You have to extend the Mailer class and make your own implementation.
    When you've made your own implementation you put

    $mailer = new My_Mailer();

    in your _config.php and off you go. Have a look at the Mailer class for what you need to implement in your extension.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.