Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Err while attaching an attachment to msg Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
reena_bharti
Newbie
Newbie


Joined: 11 November 2006
Location: United States
Online Status: Offline
Posts: 8
Posted: 27 December 2006 at 10:21am | IP Logged Quote reena_bharti

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 View reena_bharti's Profile Search for other posts by reena_bharti
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 27 December 2006 at 12:25pm | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide