File attached in smtp

how to attach the file in smtp.is there any example code for curl smtp?