There are 2 problems: The first is where you put your \n - don't put a \n after the To: field. The second problem is that you're missing a \" at the end of the boundary field of the Content-Type specifier. -- Dave Sifry david@sifry.com, sifry@aptltd.com (408) 471-0667 (voice) (408) 471-0666 (fax)