Send SMTP Mail Message: Object reference not set to an instance of an object

Send SMTP Mail Message: Object reference not set to an instance of an object.

Getting this error

Please can anyone help?

may be attachment is not available

I coded accordingly. Can you please help me screen share?

If possible.