Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Coverting email HTML body to an attachmen Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
wpessoa
Newbie
Newbie


Joined: 11 July 2007
Location: United States
Online Status: Offline
Posts: 2
Posted: 11 July 2007 at 4:05pm | IP Logged Quote wpessoa

We are looking for an application that we can install in a mail server that will parse outbound email and convert the body of the HTML email to attachments of that email (with .html extensions). Can this product do this for all messages leaving a specified server?
Back to Top View wpessoa's Profile Search for other posts by wpessoa
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 July 2007 at 7:55am | IP Logged Quote Alex

You can use the code like below:
Code:

' Assume Msg in MailBee.Message instance containing the message you
' need to process

If Msg.BodyFormat = 1 Then
  ' Body format is HTML
  Msg.AddStringAttachment Msg.BodyText, False, "message.html", "text/html"
End If

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 July 2007 at 7:57am | IP Logged Quote Alex

The code above processes a mail which already was downloaded. Of course, you cannot modify the message directly on the mail server (mail protocols do no support this and never will because a message is considered atomic unit in email standards). Any modification of an email produces new email.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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