One more question for you guys...

This is the first time I have used actionMailer and the corresponding
templates. In my case I was noticing that email would not be sent out
as expected unless I had both an "email_view.text.html.erb" and
"email_view.text.plain.erb" view file in the app. Is this really how
it works?

Is the flow something like this...?

If the email client doesn't support the HTML version is Rails smart
enough to serve the plain text version instead?

Thanks

On Jun 18, 10:17 am, elliottg <[email protected]> wrote:
> Thanks a ton for the info and insight guys!
>
> Elliott
>
> On Jun 18, 6:47 am, swaggs <[email protected]> wrote:
>
>
>
> > Matt is right on the money.  Images are not a big deal, simply
> > link them as you would for any html using the 
> > fullhttp://mysite.com/images/picture.jpg
> > path.
>
> > And make sure (as stated above) that the email still is representable
> > without the images
> > because they do not load by default for a large majority of the
> > recipients.
>
> > On Jun 18, 5:06 am, Matthew MacLeod <[email protected]> wrote:
>
> > > On Jun 18, 6:37 am, elliottg <[email protected]> wrote:
>
> > > > However if I do want to link to an image or stylesheet in /public/*
> > > > from the email how would I do that?
>
> > > You would just link to images or stylesheets in your ActionMailer view
> > > in the same way as you usually would.
>
> > > And I know you say you want to, but bear in mind that linking in an
> > > external stylesheet will fail for most email clients. At the very
> > > minimum you will need to include the CSS inside a <style> tag within
> > > the email, and for clients including GMail and Outlook you will
> > > actually have to include the CSS within the style attribute of the
> > > HTML tags.
>
> > > -Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to