Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Contact Form

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 917 Views
  • corkg
    Community Member
    30 Posts

    Contact Form Link to this post

    I am using a user defined form that is used as a contact form. Unfortunately when the mail arrives it has no "from" so it goes into junk how do I make the email have a from field.


  • theAlien
    Community Member
    131 Posts

    Re: Contact Form Link to this post

    That indeed is a problem and I filed it as a bug for the devs (here).

    However, if you're a bit into SS, you could patch (or even better: subclass) UserDefinedForm.php by adding this line:


    If you decide to patch, it should be placed somewhere around line 390.
    If you decide to subclass, this line is part of the process-function.

    Off course it would be nice if you would be able to replace 'yourDefaultFrom@emailadres.com' by the e-mailadres the user has entered. However, I still don't know how to accomplish that.

    Maybe there is a dev somewhere around who could give us a hint?

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.