Author |
|
mbramlett Newbie
Joined: 18 October 2010 Location: United States
Online Status: Offline Posts: 2
|
Posted: 21 December 2010 at 11:41am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6094
|
Posted: 22 December 2010 at 12:19am | IP Logged
|
|
|
You should use SMTP.Message.Attachments.RemoveAll method.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
mbramlett Newbie
Joined: 18 October 2010 Location: United States
Online Status: Offline Posts: 2
|
Posted: 28 December 2010 at 9:42am | IP Logged
|
|
|
Awesome, that worked!
|
Back to Top |
|
|