Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: how can i rename my attachments? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mfunky
Newbie
Newbie
Avatar

Joined: 06 October 2008
Location: Italy
Online Status: Offline
Posts: 2
Posted: 06 October 2008 at 6:16am | IP Logged Quote mfunky

hi folks,
i'm just using this code to menage my attachments:
For Each attach As Attachment In messaggio.Attachments
                      nomeFileAllegato = idLastEmail & "_" & Server.HtmlEncode(attach.Filename)
                      sizeAllegato = attach.Size
                      attach.SaveToFolder(Server.MapPath("../gestmail/allegati"), False)

how can i rename my attachments when i save into my folder?
thanks a lot

Marco

next
Back to Top View mfunky's Profile Search for other posts by mfunky
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 06 October 2008 at 6:36am | IP Logged Quote Igor

Instead of SaveToFolder, you should use Attachment.Save method. It accepts full file path as an argument, so you are able to set any filename there.

Regards,
Igor.
Back to Top View Igor's Profile Search for other posts by Igor
 
mfunky
Newbie
Newbie
Avatar

Joined: 06 October 2008
Location: Italy
Online Status: Offline
Posts: 2
Posted: 06 October 2008 at 6:52am | IP Logged Quote mfunky

fantastic!!!
it works
thank you very much my friend
Back to Top View mfunky's Profile Search for other posts by mfunky
 

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