thought this bug was solved weeks ago...
Here is a solution I wrote (in a specific module) to send an email in hr_recruitment/hr_applicant, using an email_template
Context :
When an applicant is refused, I created a button (see code in attached file) in the applicant form that allows to send an email based on a template.
module_name = name of the specific module
email_template_name = name of the template
Actually, we just use the template to get the informations (email_from, body,...) and then create the mail.
This way, the email_from is the one defined in the template and (bonus!) the email_to, extract from the applicant mail, is correctly formatted (it was not when I worked on it, see bug #1163790 ).
The bad news :
After the mail is created, it does not open. However, it is visible in the mail pending list (Configuration/Technical/email/email) and can be modified there.
The attachments of the template are not managed.
This code is not a patch, but it makes the system working as expected in this case.
Hi all,
thought this bug was solved weeks ago... hr_applicant, using an email_template
Here is a solution I wrote (in a specific module) to send an email in hr_recruitment/
Context :
When an applicant is refused, I created a button (see code in attached file) in the applicant form that allows to send an email based on a template.
module_name = name of the specific module
email_template_name = name of the template
Actually, we just use the template to get the informations (email_from, body,...) and then create the mail.
This way, the email_from is the one defined in the template and (bonus!) the email_to, extract from the applicant mail, is correctly formatted (it was not when I worked on it, see bug #1163790 ).
The bad news : Technical/ email/email) and can be modified there.
After the mail is created, it does not open. However, it is visible in the mail pending list (Configuration/
The attachments of the template are not managed.
This code is not a patch, but it makes the system working as expected in this case.
Hope it helps.
Regards