Fax sent success email template?

Status
Not open for further replies.

aitp/nadmin

Member
May 11, 2019
38
2
8
Hi there!

I was wondering if there was a way I could add the fax cover letter "subject" or "body" to the success email which is sent afterwards. Thanks in advance for the guidance!

Respectfully,

aitp/nadmin
 

Lim00n

Member
Jan 31, 2020
38
11
8
41
Edit the fax_retry.lua file (freeswitch.email call and email_message_success or email_message_fail)
 

aitp/nadmin

Member
May 11, 2019
38
2
8
Hi @Lim00n,

Thanks for the tip. I'm still having some trouble implementing this. Could someone offer me some guidance?
Simply adding :
email_body_success_default = email_body_success_default:gsub("${fax_subject}", fax_subject);
to fax_retry.lua doesn't seem to do the trick for me.

Sorry for such a silly question. Thanks in advance for the guidance!

Respectfully,
aitp/nadmin
 

aitp/nadmin

Member
May 11, 2019
38
2
8
Sorry to shamefully bump my own post.
Any additional help or guidance on this matter would be greatly appreciated. Thanks in advance!
Respectfully,
aitp/nadmin
 

Lim00n

Member
Jan 31, 2020
38
11
8
41
What exactly are you trying to put into the success email? I'm unsure what you mean by fax cover letter "subject" or "body"? The cover letter that is generated? Do you want to put the subject and body that was sent to the server into the confirmation mail?
 

aitp/nadmin

Member
May 11, 2019
38
2
8
Thanks for getting back to me. Your last assumption is most correct. I'm curious to find out if I can include the subject or body fields from the new fax page into the confirmation email. Thanks again for thinking about this for me.

Respectfully,
Auto/nadmi
 

Lim00n

Member
Jan 31, 2020
38
11
8
41
Hmm, well the cover letter is generated upon fax retrieval from the mail server in fax_emails.php and fax_send.php, so i think you would need to pass a variable to freeswitch which would include the subject and body of the mail in order to set them in the fax_retry.lua and send them in the email to the sender. I haven't done this myself but i would start in fax_send.php and try to pass a variable to freeswitch and then read it in fax_retry.lua.

Mybe someone else has another idea :)
 

aitp/nadmin

Member
May 11, 2019
38
2
8
@Lim00n n,
Thank you so much! I'll have a peek and see what I can gather on my own... I sincerely appreciate the tips :)
If anyone has given something like this a whack before and have some general guidance, it would too be super appreciated.
Thanks again community!

Respectfully,
aitp/nadmi
 
Status
Not open for further replies.