Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Attachments Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Itzik
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 05 June 2005 at 6:28am | IP Logged Quote Itzik

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 View Itzik's Profile Search for other posts by Itzik
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 05 June 2005 at 9:10am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
itzik
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 05 June 2005 at 9:36am | IP Logged Quote itzik

Thank you Alex,
You are the best!

Itzik
Back to Top View itzik's Profile Search for other posts by itzik
 

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