similar to: Code snippet request: Text email with attachment

Displaying 20 results from an estimated 10000 matches similar to: "Code snippet request: Text email with attachment"

2005 Dec 16
1
Composing HTML e-mail with a PDF attachment
Hi, everyone. I''ve been using Rails for a little while now, and am really, really enjoying the experience. I''m having the darndest time trying to send e-mail whose contents are in HTML, and which includes a PDF attachment. Following various instructions (in the Pragmatic book, as well as at <http://wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer>),
2005 Dec 19
0
Re: Rails Digest, Vol 15, Issue 392
Peter Bohm wrote: > which way do you send the email? Using the raw TMail object as described > in the HowToSendMimeMultipartEmailsWithActionMailer? Can you post some code? I''ll describe the problem in a bit more detail, and then will describe what I did to solve it. The site I''m working on wanted to send an acknowledgment to people using our e-commerce site. The message
2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi, does anybody know if TMail supports nested multipart messages? I read a changelog that indicates so (http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but I haven''t been able to get it working so far. Maybe I am doing something wrong here? I attached the sample mail. Here is the code to parse it: require File.dirname(__FILE__) +
2009 Oct 31
3
1.9 Compat and merging mail gem into ActionMailer
Hi all of both RoR Core and TMail. You may know me better as the maintainer of TMail. However, TMail has been a bit difficult to get working with Ruby 1.9, so in the light of that, I sat down over the past few months and wrote myself an all encompasing mail gem. Mail passes all of its hundreds of specs equally well in Ruby 1.8.6, 1.8.7 and 1.9.1. Mail reads every email in the TMail test suite
2005 Feb 11
1
adding attachment to ActionMailer
Is it possible to add an attachment and send it with ActionMailer?
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out TMail This is for the 3.0 release, and not part of the 2.x tree. I am the TMail maintainer and I decided this year to write a ruby email handler, the Mail gem is my solution to this. Mail takes a very object oriented approach to email. It conforms to RFCs as closely as practical and parses the 0.5gb Trec and 2.5Gb
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out TMail This is for the 3.0 release, and not part of the 2.x tree. I am the TMail maintainer and I decided this year to write a ruby email handler, the Mail gem is my solution to this. Mail takes a very object oriented approach to email. It conforms to RFCs as closely as practical and parses the 0.5gb Trec and 2.5Gb
2005 Dec 31
4
How might I use file_column for incoming email attachments?
I''m writing a ''Mailman'' model that catches emails sent to my application (kind of like backpack, I think). The trouble is that I''d like to save image attachments in the same was that file_column saves them--in fact, I''d really like to use a simple assignment like photo.image = attachment to save the image in its proper place. However,
2006 Jan 02
5
How to use MySQL sum() to get total of column?
Easy one: Let''s say I have a table called ''employees'' with a column called salaries, how can I add Employee.salaries_total to the model? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
1
ActionMailer - Message-id issue
Whenever I send e-mails through rails, part of the header comes out as follows: From: johndoe@domain1.com To: janedoe@domain2.com Message-Id: <442aba6514d50_154f7ba03530@iMac.local.tmail> With Outlook 2003 SP2''s new "anti-phishing" feature, it''s tagging all of these e-mails as junk. I tried sending the same content from my mail software, using the same
2006 Jan 28
0
How to get email body in plain/text
Hi, all. I have a very simple Mailer class class AliasMailer < ActionMailer::Base def receive(email) puts email.body end end And I have problem here with TMail::Mail object that I received via receive() function. I am trying to get body of the mail but I have following text Hello\r\n\r\n--\r\n\r\n\r\nHello<br clear=\"all\"><br>-- <br>h for mail that have
2009 Oct 22
1
Can't figure you why I am getting deliver_from == Nil Using EmailSpec
Using EmailSpec, I am testing the format of emails sent from an observer. I can verify the deliver_to address, the bcc_to address, and that the message body has the appropriate text. However, when I test the deliver_from, I am getting an error saying my deliver_from is nil, though when I follow the same steps in development, an email is sent with the appropriate from address. This is the
2006 Feb 04
1
Issues with sending HTML email
Hello, I am using the SaltedLoginGenerator. Everything is working fine except the e-mail is being sent out as text instead of text/html. I have tried changing the Content-Type to text/html but to no avail. I even tried changing the Content-Type in tmail/facade.rb but it didn''t help. What am I missing? How can I get ROR to send a HTML email. Thanks Frank
2006 Jun 28
0
Reading email attachments
Is anyone sucessfully reading email attachments? I have had some luck in my local dev environment but only get partial files on my hosted server (TxD) and then only sometimes. I use something like this.... Net::POP3.start("widespreadsolutions.com", nil, "briefcase", "y902xas") do |pop| if pop.mails.empty? logger.info "NO MAIL" else
2006 Jul 05
1
TMail + Receing mail and extract attachments
Hi guys, I have a hard time with action mailer and TMail, I always get the following error... My code: << pop = Net::POP3.new(''pop.mydomain.com'') pop.start(''xxx'', ''xxxxx'') # (1) if pop.mails.empty? puts ''No mail.'' else i = 0 pop.each_mail do |m| # or "pop.mails.each
2005 Mar 22
9
am i the only one with this problem?
(clean install) >gem install rails Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' Install required dependency activesupport? [Yn] y Install required dependency activerecord? [Yn] y Install required dependency actionpack? [Yn] y Install required dependency actionmailer? [Yn] y
2018 Sep 29
2
xapian parser bug?
Today we noticed that keywords can't be searched as prefixed terms. Or that's what it looks like anyway. I tested and, or, and not. ╰─% NOTMUCH_DEBUG_QUERY=y notmuch search 'subject:"and"' Query string is: subject:"and" notmuch search: A Xapian exception occurred A Xapian exception occurred parsing query: Syntax: <expression> AND <expression> Query
2006 Oct 03
2
dovecot, procmail and deliver
(Using dovecot 1.0 RC7 on Fedora Core 5) <scene set> Hitherto we have used UW-IMAP on a "farm" of Linux machines mounting NFS from a NetApp. (The UW-IMAP author doesn't like use of NFS, but with careful use of NFS mount arguments ('noac,actimeo=0' etc.) and trying to ensure that all activity for a given user takes place within one machine in the farm, we seem to
2006 Jan 04
4
Multiple emails from one SMTP connection?
Hi all. I''m running a nightly job that is creating a CSV file and sending to member via SMTP. I got the following error after about 20 emails or so: Net::SMTPServerBusy Too many connections from IP... Is there a way (using ActionMailer) to open a connection and send multiple emails. Or could I make sure the connection is closed before opening another? The only other option is to send
2016 Apr 08
2
slowdown in notmuch perf suite with xapian 1.3.5
Olly Betts <olly at survex.com> writes: > > So the T00-new.sh numbers make sense - there's more work to do, and > we need to read existing positional data more to insert the new stuff, > so the increased reads and writes make sense. > > But guessing at what the other two tests do, I wouldn't expect them to > be affected by this. The non-optimized-away cases of