I have a form on example.com/contact-us.php that looks like this (simplified):
example.com/contact-us.php
In the HTML form I have not added following line, so no attachment was going:
enctype="multipart/form-data"
After adding above line in form (as below), the attachment went perfect.