Hi [first name],
We appreciate your interest in [company name] and the time you’ve invested in applying for the [role title] opening.
We ended up moving forward with another candidate, but we’d like to thank you for talking to our team and giving us the opportunity to learn about your skills and accomplishments.
We will be advertising more positions in the coming months. We hope you’ll keep us in mind and we encourage you to apply again.
We wish you good luck with your job search and professional future endeavors.