PublicAPI.CRM.Relationship.CreateMail ELMA API Documentation
Create Mail. Creates an object without saving to the database
 
 
Syntax

public RelationshipMail CreateMail()

Return Value

Type: RelationshipMail
Mail
Examples

//create mail 
var myMail = PublicAPI.CRM.Relationship.CreateMail();

//myMail - created mail 

//WARNING!! Mail is created without a name. For correct work with the mail, you should 
//specify its name and sabe the object to the database
myMail.Theme = "Mail Name";
myMail.Save();
See Also