Sample code to send PHP mail with excel file attachment
>>file saved as text file, click on attachment
php code for xlsx file attached email.txt (Size: 1.29 KB / Downloads: 12)
>>file saved as text file, click on attachment

![[Image: php%2Bmail%2Bexcel%2Battachment.png]](https://1.bp.blogspot.com/-lUdF5tRceV0/XmaowDWYHSI/AAAAAAAAAfg/rydhdh1lpQgBV7tj9ZGtV2VMlBwWbw0eACLcBGAsYHQ/s1600/php%2Bmail%2Bexcel%2Battachment.png)