G&#039;morning all.<BR><BR>This one is confusing the hell out of me; I&#039;m using CDONTS NewMail to send an email having attached a file using the .AttachFile method. If I <BR><BR>1) Attach no file - the email recieved is fine and dandy<BR><BR>2) Attach two files - the email is great. With both attachments as should be.<BR><BR>3) Attach one file - the .Body is attached and the .AttachFile becomes the .Body<BR><BR>Does that make sense? If I attach one file, the resulting email has the specified body as the attachment and the attachment is shown as the email body! To make it "work" I could either comment out the .AttachFile or copy and paste it again below - these work fine.<BR><BR>Has anyone else had this problem? Could it be a dodgy CDONTS that I should get my host to reinstall?<BR><BR>Here&#039;s a section of the function I use;<BR><BR>sub subSendEmail(sEmailTemplateFile, sAttachFileName, iUserID)<BR> &#039;-- declare vars<BR> dim oMail, sEmailBody<BR> Set oMail = CreateObject("CDONTS.NewMail")<BR> <BR> &#039;-- get email body<BR> sEmailBody = fnReadFile(sEmailTemplateFile)<BR> <BR> &#039;-- do email stuff<BR> with oMail<BR> &#039;-- build headers<BR> .From = "me@here.com"<BR> .To = "you@there.com"<BR> .Bcc = "me2@here.com"<BR> .Subject = "This is a Test"<BR> .Body = sEmailBody<BR> <BR> &#039;-- attach index.htm<BR> .AttachFile (Server.MapPath(sAttachFileName),"index.htm")<BR> <BR> &#039;-- send the email<BR> .Send<BR> end with<BR> <BR> &#039;-- stoppit and tidyup<BR> set oMail = nothing<BR>end sub<BR><BR><BR>arigato gozaimasu, everybody.<BR><BR>Joe <BR> --------------------------------------------------<BR>http://www.chainsawjoe.com - better than toast.<BR>Penguins - better than http://www.chainsawjoe.com<BR> --------------------------------------------------