Hi Brian, Thank you for the advice. I tried to send a multipart email using the following: MIME-Version: 1.0 CRLF Content-Type: multipart/mixed; CRLF boundary = "part1" CRLF *** there is a space before boundary CRLF --part1 CRLF Content-Type: text/html; CRLF CRLF <HTML><b>1st test body</b> CRLF CRLF --part1 CRLF Content-Type: text/plain; CRLF CRLF 2nd test body CRLF CRLF --part1-- CRLF CRLF.CRLF The email I got looks like this: --part1 Content-Type: text/html; <HTML><b>1st test body</b> --part1 Content-Type: text/plain; 2nd test body --part1-- I hope you can tell me what I have done wrong. My project is to send smtp email with text which will be formatted using html and a jpeg file. Thank you for your help, Peter