Author |
|
Itzik Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 05 June 2005 at 6:28am | IP Logged
|
|
|
Hi Alex,
I have a problem with the Attachments.
When I have mail with gif or jpg Attachments, I want to show them together with the message body.
In shot: I can't.
What shel I do.
Thank you,
Itzik
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 05 June 2005 at 9:10am | IP Logged
|
|
|
You should save these attachments into temporary location and then print <IMG> tags into HTML using virtual paths of the saved attachments.
Code:
For Each Attach In Msg.Attachments
If InStrRev(Attach.Filename, ".") > 0 Then
strExt = Mid(Attach.Filename, InStrRev(Attach.Filename, ".") + 1)
If strExt = ".jpg" or strExt = ".gif" Then
Attach.SaveFile "C:\wwwroot\data\folder"
Response.Write "<img src='/data/folder/" & Attach.Filename & "'><br>"
End If
End If
Next
|
|
|
Regards,
Alex
|
Back to Top |
|
|
itzik Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 05 June 2005 at 9:36am | IP Logged
|
|
|
Thank you Alex,
You are the best!
Itzik
|
Back to Top |
|
|