tags:

views:

31

answers:

3

We have a mass emailing tool (.net based) that we developed in house. html editor. and sends via html and text formats.

within the body we have an absolute URL path to a PDF on our server. some of our subscribers are stating that when they click on the link they get a message box that the file is an executable file and whether they should run it or not...

why would that happen... and only to a certain group?

A: 

What did they open the email with, a browser (which? version?), or an email client?

I'm thinking that the issue could easily boil down to some IE settings.

rlb.usa
A: 

Is your path a local path? Like:

\\Server\pdf\example.pdf

Maybe this is triggering the executable warning?

Keltex
No, it is an absolute URL path to our sever.
tony noriega
+1  A: 

Hi, To resolve your problem, you need to indicate MIME type of content. In this case: application/pdf

B7ackAnge7z
so: type="application/pdf"?
tony noriega
In a php file, paste this code://beginheader('Content-Type: application/pdf');readfile('your_doc.pdf');//endThus, browser is forced to display .pdf content, and will not suggest to download file.
B7ackAnge7z