Author |
|
mfunky Newbie
Joined: 06 October 2008 Location: Italy
Online Status: Offline Posts: 2
|
Posted: 06 October 2008 at 6:16am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Online Posts: 6103
|
Posted: 06 October 2008 at 6:36am | IP Logged
|
|
|
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 |
|
|
mfunky Newbie
Joined: 06 October 2008 Location: Italy
Online Status: Offline Posts: 2
|
Posted: 06 October 2008 at 6:52am | IP Logged
|
|
|
fantastic!!!
it works
thank you very much my friend
|
Back to Top |
|
|