Category: Email

HTML emails and getting all you styles in-line with a free online tool

If you have had to put together any html email templates then you know what a pain it is getting things right for all the various email clients out there. especially as Google’s Gmail has a nasty habit of stripping all the CSS goodness from html emails leaving them look not how you intended.

The best advice is to make sure all your styling is inline. This can be a pain to manage if you need to design multiple templates. Thanks to a very neat facility provided by the team at Campaign Monitor you can design your emails using good CSS principle using styles and classes.

When you want to make the final HTML with all your styles in-line, use the free online ‘CSS Inliner’ tool by Campaign Monitor at http://inliner.cm/

Testing an SMTP Service using telnet

Here’s a quick way to manually test your SMTP service.

The best plan is to run this test on the server first (ensure that localhost or 127.0.0.1 is allowed to access the service) and then from a remote client next.

Follow these steps

(the response examples are those returned against a Windows 2008 R2 Server SMTP Service):

  1. Type Telnet <server name or IP> 25 at a command prompt, and then press ENTER.

    The output should look something like:
    220
    CP5-15164 Microsoft ESMTP MAIL Service, Version: 7.5.7600.16601 ready at  Fr
    i, 16 Sep 2011 11:23:30 +0100

  2. Type ehlo, and then press ENTER.

    The output resembles the following: 
    250-CP5-15164 Hello [127.0.0.1]
    250-TURN
    250-SIZE 2097152
    250-ETRN
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-8bitmime
    250-BINARYMIME
    250-CHUNKING
    250-VRFY
    250 OK

  3. Type mail from:email@domain.com, and then press ENTER.

    The output resembles the following:
    250 2.1.0 email@domain.com….Sender OK

  4. Type rcpt to:youremail@domain.com, and then press ENTER.

    The output resembles the following:
    250 2.1.5 youremail@domain.com

  5. Type Data, and then press ENTER.

    The output resembles the following:
    354 Start mail input; end with <CRLF>.<CRLF>

  6. Type Subject:Test # subject, and then press ENTER two times.
  7. Type Test # body, and then press ENTER.
  8. Press ENTER, type a period (.), and then press ENTER.

    The output resembles the following:
    250 2.6.0 <CP5-151641XvpFVjCRG00000007@CP5-15164> Queued mail for delivery

  9. Type quit, and then press ENTER.

    The output resembles the following:
    221 2.0.0 CP5-15164 Service closing transmission channel