Scratch the below, seems if I change this then it works :-)
Dim builder2 as mailbuilder
instead of
Dim builder2 as imail
This doesn't seem to work...
Is it possible to do what I need to do?
Basically, I need to load in a pre-saved .eml file, and use it as the basis for a new email.
The .eml file would be created by a user in outlook and then is saved by an IMAP routine as a .eml file.
The routine above then uses the .eml file and sends to multiple recipients, added by the routine here.
So, I'm trying to load the .eml into a builder so I can adjust parts of the email.
even when I copy your code as per below, I get the same error.
basically "addattachment is not a member of imail" and "CCreate is not a member of imail"
Dim email as IMail
email = New MailBuilder().CreateFromEmlFile(filename)
Dim builder2 as Imail
builder2 = email.ToBuilder()
builder2.AddAttachment(....)
Dim email2 as IMail
email2 = builder2.Create()