RE: Email Attachments are corrupted

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Peter Huang (v-phuang_at_online.microsoft.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 08:30:46 GMT

Hi Russel,

First of all, I would like to confirm my understanding of your issue.
>From your description, I understand that when you use the System.Smtp.Mail
class to send mail with a pdf attachment. And the pdf file will be clipped
two lines at the end of the pdf file.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

Firstly we need to isolate the problem by following the steps below.
>From your description, you will send the mail by using the local smtp
server.
So we can send a mail to an account in local smtp domain.
We can check the local smtp domain by running the "inetmgr" and navigating
to Internet Information Services/<Computer Name>/Domains

Check the domain name (e.g. computername.fareast.corp.microsoft.com)
Then in the code we can specify the recipient's email address to
Test@computername.fareast.corp.microsoft.com.

So that after the mail has been sent we can find the the mail in the
C:\Inetpub\mailroot\Drop, it should be a .eml file.

We can use the Outlook express to open the .eml file to see if the pdf file
has been corrupted.
If the file has been corrupted we can know that this may caused by the
local smtp server or the system.web.mail, so can you mail me a test pdf
file which will reproduce the problem.

If the file was not corrupted, I think this should be corrupted when we
relay the mail to the next smtp server.

When we send a mail use the system.web.mail, the mail will be generate and
sent to the local smtp(if we do not specify the smtpserver). At first the
mail will be at the C:\inetpub\mailroot\pickup directory and then was move
to the drop folder( if the recipient is in the local smtp domain) or relay
to another smtp server. So to troubleshoot the problem we need to know in
which steps the problem occurs.

Please apply my suggestion above and let me know if it helps resolve your
problem.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • RE: [SLE] SMTP authentication
    ... destination and therefore goes from local SMTP to ISP SMTP to ... understand an SMTP server must send its load to another SMTP server. ... local one, my ISP's one, the destination one. ... C=My ISP SMTP server acting as relay between A and B ...
    (SuSE)
  • Re: Sending Email via VB.Net
    ... is likeley it uses the local SMTP server. ... server (it is part of the IIS setup)? ... this message goes through my ISP's SMTP server since I ...
    (microsoft.public.dotnet.languages.vb)
  • Problem with local SMTP
    ... need to update its SMTP server on the email account list. ... I installed my local SMTP that comes with IIS. ... outlook and outlook error message is: ...
    (microsoft.public.inetserver.iis.smtp_nntp)