Permalink
Browse files

Updated file handling and split into select HTML part and select supp…

…ort files, also added plain text emails
  • Loading branch information...
1 parent 07a325e commit 356bb31d4c3b6caf409b1c5c3b7670e46e943364 @mikel committed Jun 1, 2009
@@ -0,0 +1,4 @@
+<p>
+ <%= f.label :plain_part, "Plain Text" %>
+ <%= f.text_area :plain_part %>
+</p>
@@ -0,0 +1,9 @@
+<p>
+ <%= f.label :file_data, "HTML File" %>:
+ <%= f.file_field :html_file_data %>
+</p>
+<p>
+ <%= f.label :file_data, "Zip File" %>:
+ <%= f.file_field :zip_file_data %>
+</p>
+<%= f.hidden_field :state, :value => 'file_uploaded' %>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>New Rails Based Mailer Program</title>
+ </head>
+ <body>
+ <div style="width:600px;margin:2em auto">
+ <h1>Welcome to Mailer, the new Rails based Newsletter &amp; Mailing program</h1>
+ <img src="./rails.png" style="float:left;padding:0 1em 1em 0" />
+ <p>
+ Mailer is a <a href="http://www.rubyonrails.org">Ruby on Rails</a>
+ app designed to serve email newsletters and mailing lists.
+ </p>
+
+ <p>
+ This is actually a proper version of a mailer I
+ made on Rails 1.2.x which needs a rewrite and update.
+ Thought I would do it properly and let anyone else who
+ is interested in on the fun.
+ </p>
+
+ <p>
+ Mailer's purpose is to allow you to send out emails to
+ a mailing list without having to use the commercial email
+ companies. Much like PHPList's purpose, it has the advantages
+ of being on Rails and Ruby, making it extensible, and easy.
+ </p>
+
+ <p>
+ If you have suggestions, feel free to <a href="mailto:&#x72;&#x61;&#x61;&#x73;&#x64;&#x6E;&#x69;&#x6C;&#x40;&#x67;&#x6D;&#x61;&#x69;&#x6C;&#x2E;&#x63;&#x6F;&#x6D;">email me</a>, or visit the
+ mailer <a href="http://mailer.github.com">github site</a>,
+ and fork and code or just submit patches.
+ </p>
+
+ <p>
+ Mikel
+ </p>
+ </div>
+ </body>
+</html>
View

0 comments on commit 356bb31

Please sign in to comment.