Author |
|
reena_bharti Newbie
Joined: 11 November 2006 Location: United States
Online Status: Offline Posts: 8
|
Posted: 27 December 2006 at 10:21am | IP Logged
|
|
|
Hi
I have two project on is configured on my local machine and i am accessing that using localhost ( http://localhost/ProjInbox/default.aspx) and other one is on web and i am using a web url (www.xyz.com/projinbox/default.aspx) - (fake url)
When i am attaching a file that is residing on my machine and i use localhost project then the add attachment method works and i get the mail in my mailbox.
But when i use the web url and having the attachment on my local machine it does not find the path of the attachement that is on my local machine and i get an exception. The stack track is below.
Exception :IOException occurred. InnerException message follows: Could not find file 'C:\Documents and Settings\rbharti\Desktop\A1.JPG'.Stack track: at cz.a(String A_0, Encoding A_1, r A_2) at MailBee.Mime.AttachmentCollection.Add(String filename, String targetFilename, String contentID, String contentType, HeaderCollection customHeaders, NewAttachmentOptions options, MailTransferEncoding mailEnc) at MailBee.Mime.AttachmentCollection.Add(String filename, String targetFilename) at MailBee.Mime.AttachmentCollection.Add(String filename) at compose.Radtoolbar1_OnClick(Object sender, RadToolbarClickEventArgs e) in d:\Inetpub\wwwroot\ProjInbox\scholar\compose.aspx.cs:line 227
'C:\Documents and Settings\rbharti\Desktop\A1.JPG' is actually on my local machine and it is trying to find the same path on the remote machine.
Can you help me with this problem.
Thank you in Advance
-- Reena
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 27 December 2006 at 12:25pm | IP Logged
|
|
|
Of course, it's impossible to access files on a remote computer (it if were possible, everyone could steal everyone else's files on their computer!).
You should upload a file to the web server first (to make it local for the web server), and then you can do whatever you need with this file, for instance, attach it to a mail message.
This is the way all webmail programs work (including MailBee WebMail.
Regards,
Alex
|
Back to Top |
|
|