Configuring sendmail to use variable record templates

Configuring sendmail to use variable record templates

I have code working nicely to send offer letters to applicants from Uganda:
sendmail
[
from :sender_text
to :application_record.Email
cc:application_record.Email2,application_record.Allocated_to.Email
reply to :zoho.loginuserid
subject :"Offer of tools, Reference " + application_record.Application_Ref
message :message_text
Attachments :template:Offer_letter_Uganda:Application application_id as inline
]
However, applicants can also come from 5 other countries, and the record template needs to be different for each country.  
Is there any way to put the attachments line into a variable, like I the message_text variable, so I can just build the template name as I go?  Or do I have to code the whole sendmail into a giant if statement with 6 nearly identical options?
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方