anchor.diff:  import fr.sii.ogham.core.exception.MessagingException;
   import fr.sii.ogham.core.service.MessagingService;
   
  -public class PropertiesSample {
  -	public static void main(String[] args) throws MessagingException, IOException {
  -		Properties props = new Properties();
  -		props.setProperty("ogham.email.from", "hello@world.com");
  -		MessagingService service = MessagingBuilder.standard()
  -				.environment()
  -					.properties(props)										// <1>
  -					.properties("classpath:email.properties")				// <2>
  -					.properties("file:/etc/app/email.properties")			// <3>
  -					.properties()
  -						.set("mail.smtp.port", "10")						// <4>
  -						.and()
  -					.systemProperties()										// <5>
  -					.and()
  -				.build();
  -	}
  +public class PropertiesSample 
  +    public static void main(String[] args) throws MessagingException, IOException {
  +        Properties props = new Properties();
  +        props.setProperty("ogham.email.from", "hello@world.com");
  +        MessagingService service = MessagingBuilder.standard()
  +                .environment()
  +                    .properties(props)                                        // <1>
  +                    .properties("classpath:email.properties")                // <2>
  +                    .properties("file:/etc/app/email.properties")            // <3>
  +                    .properties()
  +                        .set("mail.smtp.port", "10")                        // <4>
  +                        .and()
  +                    .systemProperties()                                        // <5>
  +                    .and()
  +                .build();
  +    
   
   }
   ----
  
positive.code: import fr.sii.ogham.email.message.Email;
  import fr.sii.ogham.mock.context.SimpleBean;
  
  public class EmailHtmlTestSample {
  	private MessagingService oghamService;
  	
  	@Rule
  	public final GreenMailRule greenMail = new GreenMailRule(SMTP);
  
  	@Before
  	public void setUp() throws IOException {
  		oghamService = MessagingBuilder.standard()
  				.environment()
  					.properties()
  						.set("ogham.email.from", "Sender Name <test.sender@sii.fr>")
  						.set("mail.smtp.host", SMTP.getBindAddress())
  						.set("mail.smtp.port", String.valueOf(SMTP.getPort()))
  						.and()
  					.and()
  				.build();
  	}
  
  	@Test
  	public void registerMessage() throws MessagingException, javax.mail.MessagingException, IOException {
  		// @formatter:off
  		oghamService.send(new Email()
  								.content(new TemplateContent("/template/register.html", 			// <1>
  															new SimpleBean("foo", 42)))				// <2>
  								.to("Recipient Name <recipient@sii.fr>"));
  		assertThat(greenMail).receivedMessages()
  			.count(is(1))
  			.message(0)
  				.subject(is("foo - Confirm your registration"))
  				.from()
  					.address(hasItems("test.sender@sii.fr"))
  					.personal(hasItems("Sender Name")).and()
  				.to()
  					.address(hasItems("recipient@sii.fr"))
  					.personal(hasItems("Recipient Name")).and()
  				.body()
  					.contentAsString(isSimilarHtml(resourceAsString("/expected/register.html")))	// <3>
  					.contentType(startsWith("text/html")).and()
  				.alternative(nullValue())
  				.attachments(emptyIterable());
  		// @formatter:on
  	}
  }
  ----
  <1> Use an HTML template
  
negative.code: import fr.sii.ogham.core.service.MessagingService;
  import fr.sii.ogham.sms.message.Sms;
  
  public class BasicSmsglobalSmppSample 
      public static void main(String[] args) throws MessagingException {
          // configure properties (could be stored in a properties file or defined
          // in System properties)
          Properties properties = new Properties();
          properties.setProperty("ogham.sms.smpp.host", "smsglobal.com");                                            // <1>
          properties.setProperty("ogham.sms.smpp.port", "1775");                                                    // <2>
          properties.setProperty("ogham.sms.smpp.system-id", "<your smsglobal username available in API keys>");    // <3>
          properties.setProperty("ogham.sms.smpp.password", "<your smsglobal password available in API keys>");    // <4>
          properties.setProperty("ogham.sms.from", "<phone number to display for the sender>");                    // <5>
          // Instantiate the messaging service using default behavior and
          // provided properties
          MessagingService service = MessagingBuilder.standard()                                                    // <6>
                  .environment()
                      .properties(properties)                                                                        // <7>
                      .and()
                  .build();                                                                                        // <8>
          // send the sms using fluent API
          service.send(new Sms()                                                                                    // <9>
                          .content("sms content")
                          .to("+33752962193"));
      
  
  }
  ----
  