Re: "Invalid mail attachment" error from server only

From: cbDevelopment (development_at_remove.700cb.net)
Date: 10/14/04


Date: Wed, 13 Oct 2004 20:07:51 -0700

You need to have the file uploaded from the client machine to the server
before the server can attach it to the mail message. It is working for
you locally because the files are already there. "c:\test.txt" exists on
both the client (your machine) and the server (your machine).

Tasks to do:
User selects files to email and submits form
Web form uploads selected files to server (search for uploading files in
ASP.NET)
Web Form saves uploaded files to a temp directory (don't forget ASPNET
write permissions)
Web form creates email and attaches files saved in temp directory to mail
message
Web form Delivers email message with attachments
Web Form cleans up temp directory

Probably not what you were expecting.

Best of luck!

"GD" <g_du@comcast.net> wrote in
news:uEy#X1VsEHA.2456@TK2MSFTNGP10.phx.gbl:

> Hi,
> An intranet application, with a SMTP mail function that lets users to
> attach files with emails by selecting files in their local computers
> (through a file browser component), works perfect on my local machine.
> However, after deployment to a server that has Windows 2003 Sever
> installed, the mail function is able to attach the file created by the
> application. However, when users attach some files selected from their
> local machines, it generates an error:
> Exception Details: System.Web.HttpException: Invalid mail attachment
> 'C:\test.txt'.
>
> It could be some security reasons even I set the full control
> permissions to the attached files.
>
> Any ideas or solutions?
>
> TIA.
>
> GD
>
>
>
>



Relevant Pages

  • Re: "Invalid mail attachment" error from server only
    ... After uploading files, the attachment function works. ... > before the server can attach it to the mail message. ... > Web Form saves uploaded files to a temp directory (don't forget ASPNET ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: WSUS Problems
    ... To attach a jpg or txt file to the reply, please refer to the below KB ... Name of Internet news server - msnews.microsoft.com ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: Problem debugging External Assembly
    ... that I think a change I've made to a process is loaded, but in fact BizTalk ... When I attach Visual Studio to a process and enter the ... the version of the code you have is the same as the version on the server ... Remote Monitor on the server that I'm developing onto, ...
    (microsoft.public.biztalk.general)
  • Re: WSS 2.0 to 3.0 upgrade
    ... Well I ran the inplace upgrade and it didn't report any errors. ... time it took for the database to attach. ... Windows 2003 server, the SQL Server, restoring from backup to WSS 2.0, ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Drive image
    ... you only have 1 server and a couple of clients; ... This utility has a nifty feature that allows you to create an emergency boot ... > any suggestions on where to attach the external drive ... >> After you install it on a computer, you can create a boot CD. ...
    (microsoft.public.windows.server.sbs)