muquit / mailsend

A program to send mail via SMTP from command line
Other
297 stars 68 forks source link

Receiving 541 error, any way to Bypass it? #116

Open kashifmemon opened 7 years ago

kashifmemon commented 7 years ago

I am attempting to attach a HTML file as an attachment rather then in mail body in Windows 7. Receiving following response.

Error: Expected smtp code 250, got 541 Winsock error[0]: The operation completed successfully. Error: Connection is closed unexpectedly Could not send mail

Command used is as follows.

e:\mailsend1 -smtp isbsmtp.ptcl.net -t kashif.memon@ptcl.net.pk -f "PTCL.RA&FMWing@ptcl.net.pk" -sub "Test" -attach "mailbody_int_graphtest.txt,text,i" -attach "Graph_IGE_Incoming_07292017.html,text/html,a"

Please help.