How I can insert and E-Mail signature when ProjectPier send the email to my project's group.
Thank you very much.
Functionality does not exist (yet). Why would signature be important? All data is present in ProjectPier?
Option 1:
You can hardcode the signature in new_message.php, new_comment.php in application/views/notifier directory. Example:
if (loggedUser()=='your userid') {echo 'Regards, namedetails1details2';}
Option 2:
1) add a field to the user table (e.g. signature) 2) fill the database field with the signature 3) fix the code to use this field
Then the code in new_message.php could be like:
echo loggedUser()->getSignature();
Option 3:
You want to have a signature per project because you have a different role per project and maybe different contact details per project.
This would require a new table and some more code :)
The final code would be like:
echo $new_message->->getSignature();
OR
echo loggedUser()->getContactCard($new_message->getProject());
There are more options. Bottom line is:
1) Why would we need signatures? 2) Where would we need signatures? 3) How much flexibility do we need?
Functionality does not exist (yet). Why would signature be important? All data is present in ProjectPier?
Option 1:
You can hardcode the signature in new_message.php, new_comment.php in application/views/notifier directory. Example:
if (loggedUser()=='your userid') {echo 'Regards,
name
details1
details2
';
}
Option 2:
1) add a field to the user table (e.g. signature)
2) fill the database field with the signature
3) fix the code to use this field
Then the code in new_message.php could be like:
echo loggedUser()->getSignature();Option 3:
You want to have a signature per project because you have a different role per project and maybe different contact details per project.
This would require a new table and some more code :)
The final code would be like:
echo $new_message->->getSignature();OR
echo loggedUser()->getContactCard($new_message->getProject());There are more options. Bottom line is:
1) Why would we need signatures?
2) Where would we need signatures?
3) How much flexibility do we need?