Jump to:

3401 Posts in 979 Topics by 855 members

Template Questions

SilverStripe Forums » Template Questions » Mail form

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

Page: 1
Go to End
Author Topic: 1291 Views
  • Eager_one
    Avatar
    Community Member
    7 Posts

    Mail form Link to this post

    Hello everyone,

    I'm trying to create a very basic form that has some fields that people need to fill in, and when they press the: Send button it automatically sends an e-mail to both the one who submitted it and someone else...however I can't figure out how.

    Now i'm not new to php, though i'll certainly not claim to be an expert in it. I am new however to the whole SS way of things.
    I've tried several things in trying to accomplish the above named goal (including spending a while searching through these posts), however the best i've achieved is getting my echo message displayed at the top left, which as a side effect screws up my entire css. (everything moves to the left) I can't figure out how to properly insert my php lines, which need to display some editable data, and form fields.

    So hence my perhaps a bit dimwitted question: how do I do this?

    Thanks in advance for any help offered!

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Mail form Link to this post

    Aram has a nice tutorial on how to make a contact form - http://ssbits.com/creating-a-simple-contact-form/.

    Thats a good start for what you want to do.

  • Eager_one
    Avatar
    Community Member
    7 Posts

    Re: Mail form Link to this post

    Hi,

    Thanks! At first glance it looks like what I need. I'll check it out.

  • Eager_one
    Avatar
    Community Member
    7 Posts

    Re: Mail form Link to this post

    Well it turned out to be exactly what I needed to get me on my way!
    Thanks again Willr!

    1291 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.