Displaying 20 results from an estimated 9000 matches similar to: "email attachment is not sending properly"
2009 Oct 28
2
How to send a html email with attachment
Hi guys:
I wanna send a html format email with a attachment.
What I do is like:
model:
def weekly_report
address = WeeklyReportEmail.find_all_by_validate(true).collect(&:address).to_sentence(:last_word_connector
=> '','', :two_words_connector => '','')
@recipients = address
@from = "Chronos weekly report
2006 Jul 15
1
ActionMailer and PDF Attachment and corrupt file?
Community,
I''m struggling with an issue and I''m sure it is trivial but I cannot find the solution. I''m trying to attach a PDF file to an email. For simplicity, I have explicitely named a given file but when I get the email, the attachment is only a partial of the document which causes it to be corrupt. Sample below:
@recipients =
2006 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
How do you do this?
Tried all the examples on the wiki, and unfortunately the trac is not
accessible right now to check the trouble tickets.
No matter what I do the mime structure seems to be incorrect.
It seems that adding an attachment to a html+plaintext message is not
possible using the standard methods. I have seen some old posting on the
mailing list about overriding the deliver method
2007 Nov 05
0
calling a method after deliver
Hi, I am trying to call a method after message is delivered via
MyMailer.deliver_message. Is the below the same as this?
MyMailer.deliver_message
create_sent_record?
class MyMailer < ActionMailer::Base
def message( subject, body, recps, sent_at =
Time.now)
@subject =subject
@body = body
@recipients = recps
@from =
2008 Mar 13
0
Template being ignored when attaching pdf in e-mail
The following code attaches my pdf with success. However, my e-mail
template is not being rendered in the e-mail. Any idea''s why my
template is ignored?
require ''pdf/writer''
class NotifierRequest < ActionMailer::Base
def inforequest(name, email, notice_request, message)
@subject = ''Notice''
@body = {:name => name, :email
2011 May 24
0
Rails 3.0.7 ActionMailer attachments
Hello,
I''m converting my 2.3.8 application to 3.0.7 and have run into a snag
with forwarding emails from the app with an attachment. The attachment
appears in the email as 1 byte in size and thus corrupt. The actual
file is fine and Rails seems to have access to the file. I''ve tried
multiple permutations but here''s what I''m doing...
I''m fetching email
2006 May 05
5
Attach a PDF File to an Email
Hello ~
I have an email that I need to attach a PDF to. The email is being
sent, and a file is attached but it is not the original file. I am
following the example:
attachment :content_type => "image/jpeg", :body => File.read("an-image.jpg")
changing it to:
attachment :content_type => "application/pdf", :body => File.read("pdf/my.pdf")
2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
Basically, I''m trying to crop multiple images out of a remote/original
scene.. Think flickr ''tagging'', only, the pixs in the tagged boxes
become their own unique images.. by way of simulating an upload from
the controller using attachment fu.. can''t quite figure out the
specific method in fu that would allow me to do this.. I''m so near the
edge right
2011 Dec 12
1
Errno::ECONNREFUSED (Connection refused - connect(2)): sending email in production
I don''t know how to get more info about this issue on my remote server
( Linux/Debian6 - Qmail)
localhost testing is fine
, so my class UserMailer < ActionMailer::Base is rendering correctly
the email ( checked in the development log)
now, testing the remote SMTP server , via the production console,
using :
ActionMailer::Base.smtp_settings = {:address =>
2007 Dec 20
4
Ruby on Rails mailer
Today I made a first attempt to make use of ruby mailer. A volunteer
fills out a form and the information is then sent to an administrator.
I generated a mailer called notifier and added the following:
class Notifier < ActionMailer::Base
def volunteer_signup(volunteer, sent_at = Time.now)
@subject = ''A new volunteer has signed up''
@body = { :title =>
2006 Jul 28
2
has_many :through with :order column on the join model
I have a model like so
class Product < ActiveRecord::Base
has_many :image_links, :order => :position
has_many :product_images,
:order => ''image_links.position'',
:through => :image_links
end
The problem is that :order clause just gets ignored. How do you server
records in a specific order when the order column is on the join model?
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
2008 Nov 30
4
ActionMailer weirdness: bad html '=3d' for all '='
I am getting html output in my email body with spurious characters
that cannot be rendered, so that my links are not handled properly.
What am I not getting here?
My email body contains:
-----------------clip-------------
<A href=mailto:"<%=h(''support-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org'')%>?
Support">Support</A><br/>
with any
2006 Jun 28
1
sortable lists, database update
Hi,
I have some images and I want to be able to drag them into the order I
want and have the database updated accordingly. I have an unordered
list elsewhere in the application that works well, but for the images
I cant get it working.
In my controller I have:
def updateorder
params[:images].each_with_index { |id,idx| ProductImage.update(id,
:display_order => idx) }
render :text
2006 Jul 24
5
Actionmailer sending many emails in same SMTP connection?
Hi,
I need to implement a mailing list system,
Actionmailer is great, but i haven''t found out a way to send many
(hundreds of) emails without having to reconnect to the SMTP server for
each mail when calling
Mymailer::deliver_my_mail(recipient)
Any tips?
(Possibly without calling directly Net::SMTP, so i can take advantage
of the rhtml rendering of the body)
Thanks,
Best regards,
2006 Nov 04
1
ActionMailer Sending Two text/plain Parts
Hello ~
I have a working ActionMailer Action that takes the template to use as
an argument so I have one action that handles multiple emails. The
email sends just fine, and the correct email templates are used, but
ActionMailer is throwing in its own text/plain section in addition to
the one I specify. Does anyone have any ideas on why this might be
occuring, when I am specificially specifying
2007 Apr 17
0
rflickr: invalid auth token when uploading
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, I''m working on an application which uses rflickr to upload images to
flickr. I''ve generated and cached an auth token as described in the
GETTING STARTED document in the rflickr tree. However, when I call the
API, I receive an error stating "ERR: Invalid auth token (98)". The
extended error is:
XMLRPC::FaultException
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just
straight HTML, I only used the form helpers for the form tag as so:
--
<%= form_tag({:action => :send_request}, {:method=>:post,
:name=>''childsplay''})%>
--
In my page controller I have this:
--
def send_request
email = InfoMailer::deliver_sendrequest(params)
end
---
in my action mailer class I
2009 Apr 21
3
attachment_fu giving problem on production
Hello friends,
I have configured attachment_f. It''s working fine on Local(development)
system but giving problem on production. Basically on production the
attachment_fu is not able to generate thumbnail image it saving the original
size image. Below is the configuration.
has_attachment :content_type => :image,
:storage => :file_system,
:max_size
2006 Aug 10
1
ActionMailer attachment troubels
Hi!
As per the API Docs, I''ve put this in my Actionmailer class
attachment :content_type => "application/csv",
:body => File.read(filename), :content_disposition => ''test.csv''
The email arrives okay and all but the filename is ignored and the
newlines in my CSV file are gone (replaced by something else).
I must admit I''m receiving