mmmm ¿Tienes algun firewall en el server? ¿o antivirus?. Otra pregunta (esta vez algo tonta) ¿Estas seguro que el archivo que quieres mandar adjunto está donde dices que está? (su path correcto)
San Google:
Cita:
Here's a snippet of code that handles attachments. Is your code similar?
sourceDir="e:\\externalData\\attachments\\";
attachment=Request("attachment")+"";
qMsg = Server.CreateObject("CDONTS.NewMail");
qMsg.To = Request("to");
qMsg.From = Request("email");
qMsg.Subject = Request("subject");
qMsg.MailFormat = 0; // set encoding type to MIME
qMsg.AttachFile(sourceDir+attachment,attachment);
qMsg.Body =Request("question");
qMsg.Send();
I suspect you could be getting an error if CDONTS doesn't find the file you're
trying to attach. Make sure you escape any slash marks (\\) in the AttachFile
function parameters.
Un saludo