Page 1 of 1

notification on file upload (FormBuilder) without attachment

Posted: Wed Aug 03, 2011 3:53 pm
by krajicek
Hi,

already spent some hours on searching this forum and web for workaround on how to have email notification sent upon file upload (via FormBuilder).
notification should contain the uploaded file name & path but i don't want the uploaded file itself attached to it.

could you please give me some help on how to disable the attachment?
i've tried "Email Results to set Address(es)" but it post also attachment.
also tried "Suppress filename in emails and forms the end user will see" checkbox but it will disable the file name in notification email at all.

----
CMSMS 1.9.4.2
FormBuilder 0.7

apache2handler
PHP 5.2.17
MySQL 5.0.92

thank you in advance for help
krajicek

Re: notification on file upload (FormBuilder) without attach

Posted: Sat Aug 06, 2011 10:12 pm
by Coldman
Can you post your email template for your Email Results to set Address(es) ?

Re: notification on file upload (FormBuilder) without attach

Posted: Mon Aug 08, 2011 11:08 am
by krajicek
Coldman wrote:Can you post your email template for your Email Results to set Address(es) ?
here we go:

FormBuilder Submission

Date of Submission: {$sub_date}
Your server: {$sub_host}
IP address of person using form: {$sub_source_ip}

-------------------------------------------------

{if $fld_29 != "" && $fld_29 != "[unspecified]" }File: {$fld_29}{/if}
{if $fld_31 != "" && $fld_31 != "[unspecified]" }Description: {$fld_31}{/if}


kr

Re: notification on file upload (FormBuilder) without attach

Posted: Mon Aug 08, 2011 12:01 pm
by Coldman
What happens i you checking "Suppress filename in emails and
forms the end user will see:" under advanced option for the File Upload Field?

Re: notification on file upload (FormBuilder) without attach

Posted: Mon Aug 08, 2011 1:26 pm
by krajicek
Coldman wrote:What happens i you checking "Suppress filename in emails and
forms the end user will see:" under advanced option for the File Upload Field?
I receive message without the uploaded file attached but also whole line containing uploaded file path and name is missing.

e.g.

FormBuilder Submission

Date of Submission: Tue, 02 Aug 2011 16:49:40 +0200
Your server: http://www.domain.com
IP address of person using form: xx.xx.xx.xx

-------------------------------------------------

Description: test 1649


kr.

Re: notification on file upload (FormBuilder) without attach

Posted: Mon Aug 08, 2011 11:58 pm
by Coldman
Ok I did take a quick look at the module source and it's hardcoded stuff. You could probably write a UDT to fix it.

Do you really need to use Formbuilder? Else I would suggest that you use Uploads module http://dev.cmsmadesimple.org/projects/uploads.
Very easy to use and it doesn't attach the file in email.
Just add any field definitions you want, add receiver under Preferences "Send upload notification to:" and at last modify your templates.

/Coldman

Re: notification on file upload (FormBuilder) without attach

Posted: Wed Aug 24, 2011 8:33 am
by krajicek
Coldman wrote:Ok I did take a quick look at the module source and it's hardcoded stuff. You could probably write a UDT to fix it.

Do you really need to use Formbuilder? Else I would suggest that you use Uploads module http://dev.cmsmadesimple.org/projects/uploads.
Very easy to use and it doesn't attach the file in email.
Just add any field definitions you want, add receiver under Preferences "Send upload notification to:" and at last modify your templates.

/Coldman
just back from holidays. thank you Coldman, will consider the use of Uploads module

kr