Displaying 20 results from an estimated 700 matches similar to: "ActionMailer and PDF Attachment and corrupt file?"
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")
2007 May 13
2
ActionMailer outside of Rails?
Has anyone used ActionMailer outside of rails? I have a requirement for
work that will not allow me to do this from within a rails app. I have
successfully sent an email in the following manner:
MyMailer.deliver_clever_email(someArg,''testing!'')
where the second argument is the body of the email, but when I try to
call just:
MyMailer.deliver_clever_email(someAr)
and use a
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 =>
2016 May 19
1
Ransomware?
Would something like this help? I put a bunch of junk pictures and
other files in a samba share that everyone has access to. If I modify
them in any way, I get warned. I was thinking it might warn me so I
could prevent it spreading to backups.
#!/bin/sh
$MY_EMAIL="some at email.com"
$MY_DIR=/home/shared_to_everyone_via_samba/pictures_for_test_sub_folder
while inotifywait -qre
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
2006 Oct 13
2
cygwin script for Sweave
below is a very simple bash script to run Sweave from a cygwin terminal, run pdflatex on
the generated .tex file, and then view the resulting .pdf output.
i usually use cygwin when i am (forced to be on) Windoze, but i found a few issues
with paths that this script works around.
pdfview, used in the script, is simply:
2007 Jun 20
1
Help With Sweave:
Hi All,
I am running Ubuntu Feisty (7.04) on a Thinkpad T41. I've installed
the nowebm package for Ubuntu. Working from this HowTo:
http://www.ci.tuwien.ac.at/~leisch/Sweave/example-1.Snw
I try to compile the example *.Snw as in the Sweave manual:
mdj at lapmdj:~/Desktop/Sweave/example1$ noweb example-1.Snw
Can't open output file
Despite the error, a *.tex file is produced. Now I am
2007 May 09
5
Reading a web page in pdf format
Each day the daily balance in the following link
http://www.
snamretegas.it/italiano/business/gas/bilancio/pdf/bilancio.pdf
is
updated.
I would like to set up an R procedure to be run daily in a
server able to read the figures in a couple of lines only
("Industriale" and "Termoelettrico", towards the end of the balance)
and put the data in a table.
Is that possible? If
2005 Mar 07
2
DTMF to Email
I need some suggestions (not necessarily using Asterisk?) on how to
accomplish the following in the easiest way possible. I would like to have a
~3 prompt VM system, that would ask for some numbers from a caller (case
number, id and another id). It would then take their DTMF presses and format
an email to a predetermined address (i.e. the email always goes to the same
place). I don't really
2010 Sep 22
1
problem opening pdf device on Windows 7
I can not open PDf device. Acrobat is closed. I have checked archives but
could not find a solution. What should I do?
> cont.cdfplot("myanalysis.pdf", myanalysis$CDF, ylbl.r="Stream Length (km)")
Error in pdf(file = pdffile, width = width, height = height) :
unable to start device pdf
In addition: Warning message:
In pdf(file = pdffile, width = width, height = height)
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
2002 Oct 30
4
PDF printer using ps2pdf ?
Hi,
Is it possible to set up a printer in samba
that will use ps2pdf converter to create pdf documents when printing on it ?
Best Regards
Steph
2008 Mar 17
2
Dynamic actions and views
Hi,
I have a set of messages stored in the db. These are email messages
that I have to send based on some condition. This is not the way I had
been doing all these days. I used to create an action in my controller
(class Notifier < ActionMailer::ARMailer) and then create an rhtml
file with the email content and then say
Notifier::deliver_my_email_message to send out the emails. But now
that I
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__) +
2012 Oct 05
2
SendFAX - multi-page TIFF
Hi,
Does anyone had the problem of asterisk SendFax + spandsp sending only
the first page of a multi-page TIFF file?
Seams to be related to spandsp ECM config.
Any thoughts about it?
Thanks,
Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121005/ac471600/attachment.htm>
2014 Dec 23
1
ReceiveFax for multiple page (asterisk 13.0.1)
Hi all,
I have problem for receiving fax from multiple page fax that sent from fax
machine (analog).
The error is : WARNING T.30 Page did not end cleanly
This is my dialplan
[inboundfax]
exten => s,1,NoOp(**** FAX RECEIVED from ${CALLERID(num)}
${STRFTIME(${EPOCH},,%c)} ****)
exten => s,n,Set(FAXOPT(ecm)=yes)
exten =>
2006 Nov 07
2
How to link to vignette from .Rd file
I am building a package for various noncentral hypergeometric distributions.
I want to include some heavy mathematical formulas. It appears that the
build and INSTALL commands produce only .chm files and not .pdf files
from my .Rd files under Windows. This means that it cannot show
complicated mathematical formulas.
The solution might be to include a .pdf file as a vignette. I tried
that,
2006 Nov 07
2
How to link to vignette from .Rd file
I am building a package for various noncentral hypergeometric distributions.
I want to include some heavy mathematical formulas. It appears that the
build and INSTALL commands produce only .chm files and not .pdf files
from my .Rd files under Windows. This means that it cannot show
complicated mathematical formulas.
The solution might be to include a .pdf file as a vignette. I tried
that,
2013 Jun 19
6
Mailing a fax with mutt does not succeed
Hello everyone,
I'm trying to send a received fax with mutt, when I try it from the Linux
shel it works, but when trying with Asterisk's System command it doesn't.
Successful Linux command:
echo | mutt -s "New fax" earohuanca at gmail.com -a /tmp/faxes/201306191111.tif
Unsuccessful Asterisk Command:
same => n,System(mutt -s "New fax" elder.arohuanca at
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,