Commit 372beca9 by Alex Eftimie

Update readme.

parent 5909f323
...@@ -12,12 +12,21 @@ Usage: ...@@ -12,12 +12,21 @@ Usage:
## Example usage ## Example usage
Run: In the `example` folder, there is an example centos container than can be used to test connectivity.
cd example cd example
docker build -t example . docker build -t example .
docker run --rm -it --link=postfix:postfixcontainer example docker run --rm -it --link=postfix:postfixcontainer example
mail test@example.com # from commandline:
$ mail test@example.com
# mail should be sent by the postfix container # from an application, python:
\ No newline at end of file $ python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import smtplib
>>> s = smtplib.SMTP('postfixcontainer')
>>> s.sendmail('test@example.eionet.europa.eu', ['user@example.com'], 'test')
{}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment