A hack to send mails with attachments to mailing lists
Posted: 21 November 2005 09:59 AM   [ Ignore ]  
Summer Student
Total Posts:  16
Joined  11-22-2003

With this hack, when sending to mailing lists (tab COMMUNICATE),  sender optionally can attach a file (as you can do from My Account - Compose Message)

I post a hack we’ve done the guys from http://www.espintime.com . With it you can send attachments to the mailing lists or to others from tab COMMUNICATE as you do from MY ACCOUNT to other EE users.


a) we’ve used when possible the classes self-provided by EE.

b) The hack accepts only one file attached with 250kb. limit

c) IT IS very important that you use batch mode when sending mail with attachments to mailing lists, as the average size for whole messages spooled to MTA can easily be high.

d) IT IS necessary to create a file upload preference ( CP Home ›  Admin ›  File Upload Preferences ) named ‘communicate’ for the hack to work.

e) When user attaches a file to the form, this file is saved in this directory preference named ‘communicate’; if the file exists, it is overwritten. The hack does not deletes the file after the mails are sent, so remember to delete them periodically.

f) Files hacked: core.email.php, core.upload.php, cp.communicate.php, lang.communicate.php

g) Find the code hacked between the literals “begin AML Espintime hack” and “end AML Espintime hack”.


We hope you like it and hope EE team likes this hack to include this funcionality for future versions of EE. Probably it must be improved to achieve EE usual quality levels.

File Attachments
AttachMailingList.zip  (File Size: 23KB - Downloads: 262)
Profile
 
 
Posted: 21 November 2005 11:46 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Speaking strictly as an user (I’ve no juice with the development team), I’ve added this to my bookmarks.  Very handy- thanks for sharing it!

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 21 November 2005 11:58 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

wiki’d - hopefully someone will fill it out there, but at least it is harder to lose now. wink

 Signature 
Profile
MSG
 
 
Posted: 29 November 2007 11:13 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  29
Joined  10-23-2007

Is there any work being done on a module for attaching files?
If not where can I start?

Profile
 
 
Posted: 09 June 2008 07:18 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  82
Joined  03-25-2006

So I ran through this hack and it all looks good but it’s not working.  I get the following error:

Notice: Undefined variable: upped_file in /....../cp/cp.communicate.php on line 1033

It looks like it’s getting defined earlier in the script, but no dice.  Any ideas?  And when the heck is this going to be built into EE?  A mailing list without attachment ability seriously limits it’s usefulness for my clients.

Thanks.

Profile
 
 
Posted: 09 June 2008 07:19 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  82
Joined  03-25-2006

Oh yeah, I’m on 1.6.3.

Profile
 
 
Posted: 10 June 2008 02:59 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  70
Joined  08-18-2006
Lisa Wess - 21 November 2005 11:58 AM

wiki’d - hopefully someone will fill it out there, but at least it is harder to lose now. wink

The link you’ve created for the wiki post seems to go to eewiki.com??

 Signature 

“The Road to Success is Always Under Construction”

Profile
 
 
Posted: 10 June 2008 03:12 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16154
Joined  05-15-2004

The correct link would be http://expressionengine.com/wiki/Mailing_List_Attachments/ now. But it’s old, old, old. I certainly don’t recommend it.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66397 Total Logged-in Users: 26
Total Topics: 84732 Total Anonymous Users: 15
Total Replies: 454741 Total Guests: 221
Total Posts: 539473    
Members ( View Memberlist )
Newest Members:  Liju.Btom2000kalkalmohanraoelcisyncronosDan Kingsburypaulgoodeanugrah1986gregandkari