CDO and PDF Files
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS and SMTP > CDO and PDF Files




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    CDO and PDF Files  
Jeff


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-15-05 10:53 PM

We're having some trouble with some PDF files sent to our customers,
they aren't able to be read because they are "damaged, and cannot be
repaired".  Looking into this, I think it has to do with the encoding
we are using.  We don't specify a type and I think it's defaulting to a
7-bit encoding, when I think we need 8.

First of all, does that sound right?  If so, does anyone have an
example of how to specify the right encoding for PDF files?  The
messages are in HTML format, with PDF files attached.  We're using VB6
and CDO.

Thanks in advance....

Here is a snippit of the code we use.

With oMail

.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/
sendusing")
= pSendUsingPickup

.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/
smtpserver")
= mRunOptions.SMTPServer

.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/
smtpserverport")
= mRunOptions.SMTPServerPort

.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/
smtpserverpickupdirectory")
= mRunOptions.PickUpPath

.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/
smtpconnectiontimeout")
= mRunOptions.SMTPConnectTimeout
.Configuration.Fields.Update

.Subject = "eMail Report
.From = "me@yourcompany.com"
.To = pLastAddr
.AddAttachment (App.Path & "\our_logo.gif")
.AddAttachment "Test.PDF"
.HTMLBody = pHTMLHeader & pHTMLBody & pHTMLFooter
.Send
End With






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:20 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register