Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Changing "sender" in form - mail

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 4890 Views
  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Changing "sender" in form - mail Link to this post

    Hi ,

    I've browsed through the docs , but cannot seem to find a way to dynamically set the sender-emailaddress when using User generated forms.

    Sorry if i overlooked something, but is this possible ?

  • fws
    Avatar
    Community Member
    3 Posts

    Re: Changing "sender" in form - mail Link to this post

    is there no way to set the sender of forms ?

    At the moment the form arrives with the subject as the title but the from field is empty

    surly this should be set somewhere in a config file or in the main setup area of a form

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Changing "sender" in form - mail Link to this post

    I think you can set in the _config.php file at least Email::setAdminEmail()

  • fws
    Avatar
    Community Member
    3 Posts

    Re: Changing "sender" in form - mail Link to this post

    Hi, yes I understand that but the form is not being sent from the admin its being sent from whoever fills it in.

    We capture the email address and name in the contact form so why not use them in the mail headers ???

  • insic2.0
    Avatar
    Community Member
    16 Posts

    Re: Changing "sender" in form - mail Link to this post

    I want to change my email header too, anyone knows how to do it?

  • insic2.0
    Avatar
    Community Member
    16 Posts

    Re: Changing "sender" in form - mail Link to this post

    nevermind my post, i already get it. thanks

  • potion_maker
    Avatar
    Community Member
    36 Posts

    Re: Changing "sender" in form - mail Link to this post

    So placed "Email::setAdminEmail('me@mysite.net');" in my _config.php file, but form emails still show up as sent from admin@myhost.com. Any ideas?

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Changing "sender" in form - mail Link to this post

    do a global search on the whole project for "admin@myhost.com" and see if you have it anywhere

    4890 Views
Page: 1 2
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.