SMTP MULTIPART # Server-side # Client-side Mime smtp SMTP multipart with filename escaping From: different To: another body smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -F "=This is the mail text" -F '=File content;filename="strange\file\"name"' # Verify data after the test has been "shot" s/^--------------------------[A-Za-z0-9]*/------------------------------/ s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/ EHLO %TESTNUMBER MAIL FROM:%LTsender@example.com%GT RCPT TO:%LTrecipient@example.com%GT DATA QUIT Content-Type: multipart/mixed; boundary=---------------------------- Mime-Version: 1.0 ------------------------------ This is the mail text ------------------------------ Content-Disposition: attachment; filename="strange\\file\"name" File content -------------------------------- .