Mail sending using gmail smtp works. Attachement and HTML format works. Step-1 achieved.