Modify link used when sending a link email

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
briboe
Posts: 14
Joined: Tue Aug 20, 2019 1:26 pm

Modify link used when sending a link email

Post by briboe »

I am trying to set up email processes and can't figure out how to change the url for the link. Have SMTP working and emails are being sent. However, all my links are coming out as "To access this document click on the following link: https://www.mayan-edms.com/documents/...". I need it to be a link to my implementation. I have tried to to find the setting but haven't had any luck

Appreciate any guidance.
User avatar
rosarior
Developer
Developer
Posts: 624
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

Re: Modify link used when sending a link email

Post by rosarior »

The settings for this are COMMON_PROJECT_TITLE and COMMON_PROJECT_URL.

The can be changes from the UI, by editing the config.yml file, or by environment using MAYAN_COMMON_PROJECT_TITLE and MAYAN_COMMON_PROJECT_URL.
Attachments
Screenshot from 2019-10-15 14-54-25.png
Screenshot from 2019-10-15 14-54-25.png (15.04 KiB) Viewed 1725 times
briboe
Posts: 14
Joined: Tue Aug 20, 2019 1:26 pm

Re: Modify link used when sending a link email

Post by briboe »

Thanks for the prompt reply. That worked.
calvinsug
Posts: 13
Joined: Mon Sep 30, 2019 5:29 am

Re: Modify link used when sending a link email

Post by calvinsug »

rosarior wrote: Tue Oct 15, 2019 6:59 pm The settings for this are COMMON_PROJECT_TITLE and COMMON_PROJECT_URL.

The can be changes from the UI, by editing the config.yml file, or by environment using MAYAN_COMMON_PROJECT_TITLE and MAYAN_COMMON_PROJECT_URL.

Hi, where can i found this settings?

I have searched in system - setup - Settings and click every settings namespaces (total 20), but didn't found MAYAN_COMMON_PROJECT_URL and MAYAN_COMMON_PROJECT_TITLE settings.
User avatar
rosarior
Developer
Developer
Posts: 624
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

Re: Modify link used when sending a link email

Post by rosarior »

Hi,

The settings are located in the "System" > "Setup" > "Settings" menu.
michel
Posts: 6
Joined: Thu Feb 18, 2021 8:34 pm

Re: Modify link used when sending a link email

Post by michel »

The listed variables do not change the actual link to the document (they change other things). See below.

It remains "https://www.mayan-edms.com/documents/do ... 6/preview/ -------- ".

Please give me a hint where to find the 'link' variable.......... It is not in the 'Document' setting category.


----email contents--------
To access this document click on the following link: https://www.mayan-edms.com/documents/do ... 6/preview/ -------- This email has been sent from Mayan EDMS at Boskant (http://<my host address>)
michel
Posts: 6
Joined: Thu Feb 18, 2021 8:34 pm

Re: Modify link used when sending a link email

Post by michel »

Okay...... as it turns out the two listed variables immediately change and seem persistent because if I send an email immediately after changing them the arrived email does have the changed correct value substituted in 2 of 3 places. Also the title in the Mayan EDMS browser home screen nicely changed into the new value. I did notice the message to restart but because the changes were effectuated both in title and email I thought the code has probably changed without removing the message.

However this is very misleading because after 10 minutes or so they had reverted again to the old values.

So, changed them again and this time I did do the restart. And yes, now all three vars in the email have been substituted.

Bit odd though, the immediate temporary change of two of three vars. Again, one of these is the title in the home screen that you are looking at all the time and changes immediately to the new value. So why do a restart?

Well I now know why :-).

Cheers........
Post Reply