Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 25 March 2005 at 11:40pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 26 March 2005 at 10:06am | IP Logged
|
|
|
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 |
|
|