ActionMailer

Hi,

I am planning to write an internal messaging system for my users. Should I be using Actionmailer ? I am not interested in using any plugin or 3rd party sw as I want to learn some ror.

Is actionmailer used mainly for feedback and sending general emails.

I am a new to rails so any suggestions and ideas are welcome.

Warm Regards

Hi,

I am planning to write an internal messaging system for my users. Should I be using Actionmailer ? I am not interested in using any plugin or 3rd party sw as I want to learn some ror.

Is actionmailer used mainly for feedback and sending general emails.

I am a new to rails so any suggestions and ideas are welcome.

ActionMailer is a class which encapsulates the creation of mail messages (in various formats) from ActiveModel instances using ActionView templates and delivering those messages. It is roughly analogous to ActionController in a Web application, but specialized around the e-mail format. It is a very general purpose tool, suitable for use in building more specialized systems as you need.

Walter

Hi Walter,

Thanks for your input. Since I want a messaging system which will not send messages outside, will it be helpful to use ActionMailer or just write my own set of classes.

Regards

Hi Walter,

Thanks for your input. Since I want a messaging system which will not send messages outside, will it be helpful to use ActionMailer or just write my own set of classes.

If you're not actually delivering e-mail using the Internet Mail protocols, then you don't need to use ActionMailer. Are you referring to a "private message" system on a Web site, where one member can send a note to another member? That's not mail, and the only interaction such a system would have with actual Cap-M-Mail would be if you design in a "ping" system that sends an alert through mail to the recipient, alerting them to a new message. And for that, yes, you would use ActionMailer to compose and deliver the ping message.

Walter

If the messages are to remain inside your application and this is a
learning exercise, then I suggest writing your own system.

If you later need to send messages externally via SMTP (a 'copy me'
function, for example), then you could use ActionMailer with your
existing system.

Hi Walter,

Thank you very much. Is there any tutorial for “rails generate mailer”

Regards