Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Attachment Question.. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 25 March 2005 at 11:40pm | IP Logged Quote Guests

Will the AddAttachment method only pick up file paths that are on the server?

For example...you write a webmail application, you want to give the user the ability to attach files. Would the AddAttachment method be able to pick the file off their machine with a given filepath?
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 March 2005 at 10:06am | IP Logged Quote Alex

This is common task of Internet programming. It is solved by uploading required files to the server from the client (usually in some temporary location) and then attaching these files using AddAttachment method.

To upload files to the server, you can use either third-party uploader (like SoftArtisans) or MailBee's own uploader (available as MailBee.Uploader object since version 5.3 of MailBee Objects).

Please note that MailBee Objects v5.3 is available on our new web site only (www.afterlogic.com). mailbee.iforum.com will be made simle redirect to www.afterlogic.com soon.

Common idea (regardless which uploader are you going to use) is the same:

1) Make a form containing <input type=file> element. It will allow user will specify a file he wants to attach to the mail.

2) in <form> tag, specify enctype="multipart/form-data" attribute

3) <form action="path"> attribute must point to ASP page which will perform actual upload. This page must use uploader to grab files and save them somewhere on the server. Then, you can attach these files using AddAttachment method.

You can find example of using MailBee.Uploader in 'Uploader object' reference in MailBee documentation v5.3

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