Not able to add html/text content after attachment

41 views
Skip to first unread message

sudhakar reddy

unread,
Feb 2, 2015, 9:51:34 AM2/2/15
to pon...@googlegroups.com
Hi,

  I have a requirement mentioned bellow

Email body should be as followed

<html content goes here> : Works fine
attachment : Works fine
< html content again> : Need help


Code:
Pony.mail(:to => $recipients, 
 :from => "***@***.com",
 :subject => 'Daily Report', 
 :html_body => body_content
 :attachments => {filename => filecontent},
  :html_body => footer_message,  #In this line i need help. I tried with :body =>  footer_message that also didn't work.
                
)

Ben Prew

unread,
Feb 2, 2015, 12:21:49 PM2/2/15
to pon...@googlegroups.com

Sudhakar,

What kind of attachment are you trying to display?  You probably want the html_body to inline the attachment, or link to it instead.

You can't specify the :html_body key twice, it's a hash, so it just overwrites the previous :html_body key.

--

---
You received this message because you are subscribed to the Google Groups "Ponyrb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ponyrb+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sudhakar reddy

unread,
Feb 3, 2015, 12:07:10 PM2/3/15
to pon...@googlegroups.com, b...@throwingbones.com
Hi,

Attachment is HTML file. After html attachment i want add some more html body content. It is like signature/some text.

Refer Example.png file which is attached to this mail.

Thanks,
Sudhakar.
Example.png

sudhakar reddy

unread,
Feb 9, 2015, 1:54:01 AM2/9/15
to pon...@googlegroups.com, b...@throwingbones.com
Hi,

Attachment is HTML file. After html attachment i want add some more html body content. It is like signature/some text.

Refer Example.png file which is attached to this mail.

Thanks,
Sudhakar.


On Monday, 2 February 2015 22:51:49 UTC+5:30, Ben Prew wrote:
Example.png
Reply all
Reply to author
Forward
0 new messages