Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » emailing forms to different addresses

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

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

Page: 1
Go to End
Author Topic: 1368 Views
  • Arm
    Avatar
    Community Member
    12 Posts

    emailing forms to different addresses Link to this post

    Hey Guys,

    Am a little stuck on how to email forms to different email addresses depending on what the user has selected on the form. At the moment I have tried:

    $email->to = 'myaddress@whatever.com';

    but it always seem to send it to the default admin account.

    Any clues?

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: emailing forms to different addresses Link to this post

    You havent set Email::send_all_emails_to() to anywhere have you?. Also if the site is in 'dev' or 'test' mode I believe it will instantly email all emails to the admin address to prevent spamming 40,000 members

  • Arm
    Avatar
    Community Member
    12 Posts

    Re: emailing forms to different addresses Link to this post

    Ah yes I may have changed a few settings around. I couldn't remember where I made the change so I just replaced my entire saphire folder out of laziness and it did the trick. Thanks for the help!

    1368 Views
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.