An embedded object to be added into an email. An embedded object can be anything from style sheets, to sounds, to images. Just about anything that can be embedded in a web page. Please note, that not all mail readers will necessarily render an embedded object, especially depending upon security rules.
For a list of all members of this type, see EmbeddedObject Members.
System.Object
EmbeddedObject
EmailMessage msg = new EmailMessage( "mail.mycompany.com");
/// msg.FromAddress = "me@mycompany.com";
msg.To = "you@yourcompany.com";
msg.Subject="logo email";
//add the html bodypart
msg.HtmlBodyPart = "<b>What do you think of the cool new logo?</b><img src=cid:mylogo>";
//embed and add the embedded object
EmbeddedObject o = new EmbeddedObject();
o.Name = "logo.gif";
o.ContentID = "mylogo";
o.FilePath = "logo.gif";
msg.EmbedObject( o );
msg.Send();
Dim msg As EmailMessage = New EmailMessage("mail.mycompany.com")
msg.FromAddress = "me@mycompany.com"
msg.To = "you@yourcompany.com"
msg.Subject = "logo email"
'add the html bodypart
msg.HtmlBodyPart = "<b>What do you think of the cool new logo?</b><img src=cid:mylogo>"
'embed and add the embedded object
Dim o As EmbeddedObject = New EmbeddedObject()
o.Name = "logo.gif"
o.ContentID = "mylogo"
o.FilePath = "logo.gif"
msg.EmbedObject(o)
msg.Send()
Namespace: aspNetEmail
Assembly: aspNetEmail (in aspNetEmail.dll)