The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Email attachment as well as link to attachment - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Feature Suggestions (https://forums.formtools.org/forumdisplay.php?fid=7)
+--- Thread: Email attachment as well as link to attachment (/showthread.php?tid=36)



Email attachment as well as link to attachment - moorezilla - Mar 6th, 2009

Hi,

2.0 is looking great! I actually requested this attachment stuff before for the earlier version and I wanted to move the request over to 2.0 for down the road.

Basically, I think it would be nice for there to be an option to have uploaded files attached to emails in addition to emails containing links to attachments stored on the server. I use formtools as an interface for teachers to apply to positions at our school, and one thing that administrators keep asking for is to have all attachments included with the email, instead of links to the attachments.

Thanks,
am


RE: Email attachment as well as link to attachment - Ben - Mar 6th, 2009

Hey Andy,

Good to see you on these forums. :-)

This is definitely something that WILL be added, but only with the Swift Mailer module. As you know, FT1 just uses the standard PHP mail() function which, well, quite frankly sucks. The Swift Mailer module with FT2 overrides that and sends all emails with SMTP. Using mail() to send attachments was just too much of a headache, but Swift supports it very well.

Tell you what, I need to make a bug fix for that module in the next week or so, so I'll take a look at this and see if there's an easy way to add it.

All the best -

Ben


RE: Email attachment as well as link to attachment - antonitus - Mar 8th, 2009

Once again I second this feature as a few weeks ago I was looking for a script to do just that but couldn't find one anywhere. I was trying to code my own but didn't know how to do it.

At the moment my current form has a hidden link to a pdf download from the server, which is great, but my friend requested an attachment instead and this was one of the the things I was going to talk to you about, whether it was possible or not, so now I know it's possible, excellent.

Can't wait to see this feature added. Thanks for this Ben.

Regards,
Tony

P.S. Well done moorezilla for suggesting this


RE: Email attachment as well as link to attachment - Ben - Mar 8th, 2009

Hey guys,

Optional file attachments are included in today's build. You'll need to upgrade both the Core and the Swift Mailer module. I've also added a quick page on how to include the file attachments here:
http://modules.formtools.org/swift_mailer/documentation.php?page=file_attachments

It's VERY simple! Let me know if you encounter any problems.

- Ben


RE: Email attachment as well as link to attachment - moorezilla - Mar 9th, 2009

Woot! Can't wait to take a look at it!


RE: Email attachment as well as link to attachment - antonitus - Mar 9th, 2009

Hi Ben,

This is great news and that was quick. I shall try it out.

Thanks,
Tony


RE: Email attachment as well as link to attachment - antonitus - Mar 10th, 2009

Hi Ben,

I couldn't get the attachment feature to work as I'm having some serious problems installing the Swift Mailer (beta-20090309). I went directly into the database and deleted the swift mailer entry in the modules table, then I deleted the swift_mailer folder under the modules folder, copied the new swift mailer update from the entire package (to date), refreshed the module in FT and still it doesn't install. I checked the modules table to see if swift mailer was in the entry and it was, so it all looks ok. So I ask myself, what am I doing wrong and should I have done this. Any help would be most appreciated.

Thanks,
Tony