Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Clearing Attachments Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mbramlett
Newbie
Newbie


Joined: 18 October 2010
Location: United States
Online Status: Offline
Posts: 2
Posted: 21 December 2010 at 11:41am | IP Logged Quote mbramlett

How do I 'clear' the attachments that have been added to an instance of the MailBee Stmp.   What happens is I have loop, that loop through the database sending out emails.   I physically clear everything else.. (i.e. oBm.BBCAddr="")
But there is not a way, it doesn't appear, to clear the previous attachemnts.

(Ps.. How I add the attachments is obM.AddAttachment )
So to be clear loop is
   For X = 1 to next
       obm.bbcaddr=""
       obm.CcAddr=""
       obm.ToAddr =rs(ToEml)
       obm.subject="suble ct"
       obm.bbcaddr="ToMe@ somewhere.com"
       obm.AddAttachement "Myatachment.txt"
       obm.send
   .....
   Next
Obviously, there is a lot more code, but I want to know how to clear out the attachements.
Back to Top View mbramlett's Profile Search for other posts by mbramlett
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6094
Posted: 22 December 2010 at 12:19am | IP Logged Quote Igor

You should use SMTP.Message.Attachments.RemoveAll method.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
mbramlett
Newbie
Newbie


Joined: 18 October 2010
Location: United States
Online Status: Offline
Posts: 2
Posted: 28 December 2010 at 9:42am | IP Logged Quote mbramlett

Awesome, that worked!
Back to Top View mbramlett's Profile Search for other posts by mbramlett
 

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