CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Attachments
Pages: [1]

Author Topic: CiviMail Attachments  (Read 7587 times)

Jerry

  • Guest
CiviMail Attachments
April 25, 2007, 10:12:30 am
Has anyone found a way to add attachments to CiviMail emails?  I'd like to be able to send attachments as PDF, JPG, or others.  I've read the mailing list thread about CiviMail attachments, but I'm wondering if anyone has found hack for this addition.

Thanks!

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: CiviMail Attachments
April 25, 2007, 11:08:11 am
In general, you don't send attachments with mass mail... if I attach 1M to a mailing to 10,000 people, I have to pay for  10,000 megs of bandwidth.

The best solution is to upload your file to a webserver and provide a hyperlink to the actual document. The user experience is pretty good.... user clicks "Read our report", PDF opens in their web browser.

JPGs should be inline in a an HTML mail so they display right there in the window.

By using a good HTML design, it should be very easy for your recipients to understand they are opening an attachment.
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

Jerry

  • Guest
Re: CiviMail Attachments
April 25, 2007, 11:16:47 am
Quote from: geilhufe on April 25, 2007, 11:08:11 am
In general, you don't send attachments with mass mail... if I attach 1M to a mailing to 10,000 people, I have to pay for  10,000 megs of bandwidth.

The best solution is to upload your file to a webserver and provide a hyperlink to the actual document. The user experience is pretty good.... user clicks "Read our report", PDF opens in their web browser.

JPGs should be inline in a an HTML mail so they display right there in the window.

By using a good HTML design, it should be very easy for your recipients to understand they are opening an attachment.

Thank you for the reply.  Then I suppose my next adventure will be to figure out how to create an interface that will allow the user to both create the HTML email and upload the document/file to the server with little hassle.

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: CiviMail Attachments
April 25, 2007, 11:43:34 am
If you are using Drupal, the easy way is:
(1) Create a page named "Email Attachments" Don't put it in the navigation (users can't see it). You can make yourself a menu that only administrators can see.
(2) Turn on the upload module
(3) Upload your files to the Email Attachments page

Copy the URL at the bottom of the page after you upload a document into your email.
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail Attachments
May 28, 2008, 03:29:43 am
I'm coming back to this issue.

I fully agree with your arguments, but one of my client want to send an invitation on a pdf and no way of making them doing it a better way.

Any progress has been made by someone on that dev or can I try giving it a try  ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

pankaj

  • Guest
Re: CiviMail Attachments
May 28, 2008, 07:22:03 am
Right now CiviMail don’t do any works on attachments, so its not possible to send attachments as PDF, JPG, or others.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail Attachments
May 28, 2008, 11:44:36 am

You can give it a try :) The relevant code u'll need to fix is:CRM/Mailing/BAO/Mailing.php, function compose (line 985 or so)

You'll need to add the attachment to the created mime message. You'll probably need to upload the attachment in one of the "Send Mailing" forms

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail Attachments
June 03, 2008, 07:48:37 am
Gave it a try.

http://forum.civicrm.org/index.php/topic,3554.0.html

Limitation: only one attachment so far (but that's stored in a way that should allow to put more).

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

NicoleM

  • Guest
Re: CiviMail Attachments
June 09, 2008, 08:09:06 am
The other email service...I see how bulk email with attachments could risk being blocked by the recipient. Can we instead attach files to the email in the contacts, one by one or in a group?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail Attachments
July 07, 2008, 09:32:48 am
@Nicole,

You can publish on your CMS (drupal or joomla or whatever) the file and simply send the link to it in the mailing. You can add a file (custom field) to a contact, but can't think of a way to let the user downloading it (access rights, generating the right url...)

Update: attachments is now a feature (up to 3)
http://issues.civicrm.org/jira/browse/CRM-3187
(use svn to get the patch, what lobo did is way better than my hack)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Attachments

This forum was archived on 2017-11-26.