Automatically send email to supplier after validating purchase receipt

How can I automatically send an email to the supplier with the purchase receipt document attached in pdf, after I validate the purchase receipt?

I could set an email alert sending an email to myself (owner) but I don’t know how to set the associated supplier email. Setting “supplier” in recipient does not seem to work.

see this

https://frappe.github.io/erpnext/user/manual/en/setting-up/email/email-account.html
https://frappe.github.io/erpnext/user/manual/en/setting-up/email/sending-email.html

How to do it automatically after validating?

Email alerts will cover this well. If you have contact email available in the purchase receipt form, then you should be able to set up conditions accordingly.

I made contact email available in the purchase receipt form, but what are the conditions you are talking about?

https://frappe.github.io/erpnext/user/manual/en/setting-up/email/email-alerts.html