core icon indicating copy to clipboard operation
core copied to clipboard

[oC7 RC1] Sharing Mail template didn't work

Open ser72 opened this issue 12 years ago • 14 comments

Expected behavior Receive configured email template

Actual behavior Received default template

Steps

  1. in the admin page, change the default template for sharing emails as follows:

template

  1. Configure the ability to send email notifications when sharing files
  2. Share a file/folder and wait for the email
  3. Email came is default template:
Hey there,

just letting you know that ser72 shared share 2 with you.
View it!

Cheers!

--
ownCloud - web services under your control
https://owncloud.org 

Potential log info:

Debug   mail    Mail from ser72 ([email protected]) to: comm_7rc1([email protected]) subject: ser72 shared »share 2« with you    2014-07-10T13:54:43+00:00
Debug   core    OC_Image->fixOrientation() Orientation: -1  2014-07-10T13:54:26+00:00
Debug   core    OC_Image->fixOrientation() No readable file path set.   2014-07-10T13:54:26+00:00
Debug   core    OC_Image::loadFromFileHandle(): Trying  2014-07-10T13:54:26+00:00
Error   PHP Declaration of OCA\TemplateEditor\Controller\AdminSettingsController::render() should be compatible with that of OCP\AppFramework\Controller::render() at /var/www/owncloud7RC1/apps/templateeditor/controller/adminsettingscontroller.php#31   2014-07-10T13:53:57+00:00
Error   PHP Declaration of OCA\TemplateEditor\Controller\AdminSettingsController::render() should be compatible with that of OCP\AppFramework\Controller::render() at /var/www/owncloud7RC1/apps/templateeditor/controller/adminsettingscontroller.php#31   2014-07-10T13:53:54+00:00
Error   PHP Declaration of OCA\TemplateEditor\Controller\AdminSettingsController::render() should be compatible with that of OCP\AppFramework\Controller::render() at /var/www/owncloud7RC1/apps/templateeditor/controller/adminsettingscontroller.php#31   2014-07-10T13:53:35+00:00
Error   PHP Declaration of OCA\TemplateEditor\Controller\AdminSettingsController::render() should be compatible with that of OCP\AppFramework\Controller::render() at /var/www/owncloud7RC1/apps/templateeditor/controller/adminsettingscontroller.php#31   2014-07-10T13:53:14+00:00
Debug   webdav  Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found    2014-07-10T13:53:09+00:00
Error   PHP Declaration of OCA\TemplateEditor\Controller\AdminSettingsController::render() should be compatible with that of OCP\AppFramework\Controller::render() at /var/www/owncloud7RC1/apps/templateeditor/controller/adminsettingscontroller.php#31   2014-07-10T13:52:53+00:00

ser72 avatar Jul 10 '14 13:07 ser72

@butonic

DeepDiver1975 avatar Jul 10 '14 14:07 DeepDiver1975

@ser72 the template editor lives in this repo: https://github.com/owncloud/templateeditor

DeepDiver1975 avatar Jul 10 '14 14:07 DeepDiver1975

@ser72 Did you save the template? I just tested this with the html and althttp templates and both work fine. I'll look into the log errors.

butonic avatar Jul 10 '14 14:07 butonic

log errors fixed in PR

butonic avatar Jul 10 '14 15:07 butonic

@butonic

Yes I did save the template. Figured that trick out when I went to edit it again and my edits weren't there... :)

ser72 avatar Jul 10 '14 15:07 ser72

@ser72 so ... does the problem still exist?

butonic avatar Jul 11 '14 14:07 butonic

@butonic

Yes the problem still exists after I pressed the SAVE button.

ser72 avatar Jul 11 '14 14:07 ser72

@MTRichards @butonic Still broken Daily 9/5/14

ser72 avatar Sep 05 '14 19:09 ser72

Appears there are two email templates -- "Sharing Email" and "Sharing Email HTTP"

Sharing Email HTTP modifications work. Sharing Email don't.

  1. Why are there two there?
  2. Which one should be used?

ser72 avatar Sep 05 '14 19:09 ser72

@butonic and one more for you :-)

karlitschek avatar Sep 05 '14 20:09 karlitschek

@ser72

  1. Why are there two there?

HTML emails contain a plain text alternative, which is what 'Sharing Email' is used for (see http://en.wikipedia.org/wiki/HTML_email#Multi-part_formats). Maybe we should call the two "Sharing Email (HTML)" and "Sharing Email (plain text fallback)"?

  1. Which one should be used?

Both should be customized

I'll look into the issue.

butonic avatar Sep 06 '14 18:09 butonic

Template names tracked in https://github.com/owncloud/templateeditor/issues/8, fixed, but translations need to be backported to stable7

butonic avatar Sep 08 '14 11:09 butonic

@butonic

I'm trying to decipher this one ;) Is there a fix here and if so did it go into stable 7?

Thanks!

jnfrmarks avatar Oct 14 '14 20:10 jnfrmarks

@jnfrmarks the fixed names are in the stable7 branch and will be in the next release. Although without translations. If we want to leave them out, this can be closed.

butonic avatar Oct 15 '14 08:10 butonic