Erlang Mailing Lists

Author Message

<  User Contributions  ~  Simple SMTP client using gen_fsm behaviour

admin
Posted: Thu Aug 16, 2007 9:13 am Reply with quote
Site Admin Joined: 28 Jun 2006 Posts: 108
Written By: Michael Bradford,
A simple SMTP client using gen_fsm behaviour. Supports basic SMTP & ESMTP commands, including MD5, plain & login authentication. This version fixes a minor bug in v1.0 (see source code for details). Also included is email_msg.erl. This very simple module builds a plain text email suitable for sending via the smtp client.



smtp_client-1.1.tgz
 Description:

Download
 Filename:  smtp_client-1.1.tgz
 Filesize:  4.74 KB
 Downloaded:  2440 Time(s)

View user's profile Send private message
dmitriid
Posted: Sat Aug 09, 2008 9:04 am Reply with quote
User Joined: 17 Aug 2006 Posts: 213
Here's a patched smtp_fsm to work with R12B

* Changed httpd_util:base64_* to base64:*
* Changed httpd_util:to_lower to string:to_lower

TODO:
- define callback function code_change/4
- callback function handle_info/3
to eliminate warnings and eliminate FSM crash on termination



smtp_fsm.erl
 Description:

Download
 Filename:  smtp_fsm.erl
 Filesize:  14.67 KB
 Downloaded:  1619 Time(s)

View user's profile Send private message
babo
Posted: Thu Sep 25, 2008 5:04 pm Reply with quote
Joined: 25 Sep 2008 Posts: 2 Location: Copenhagen, Denmark
Fixed error reporting at normal stop. All warning are eliminated, necessary OTP callback functions are implemented, all TODO items from previous post are done. Tested with 11B5 and 12B3.



smtp_fsm.erl
 Description:
Replace smtp_fsm.erl

Download
 Filename:  smtp_fsm.erl
 Filesize:  14.3 KB
 Downloaded:  1244 Time(s)

View user's profile Send private message Visit poster's website
babo
Posted: Thu Nov 06, 2008 1:16 am Reply with quote
Joined: 25 Sep 2008 Posts: 2 Location: Copenhagen, Denmark
Returns the correct error code when SMTP server reject recipient. There is a new version where all error codes are fixed. Modified on 20.11.2008, the version number is 1.2 for the latest code.



smtp_fsm.erl
 Description:

Download
 Filename:  smtp_fsm.erl
 Filesize:  14.67 KB
 Downloaded:  1323 Time(s)

View user's profile Send private message Visit poster's website
nem
Posted: Sun May 03, 2009 2:11 am Reply with quote
User Joined: 29 Nov 2007 Posts: 25
Hi there, can anyone tell me what the license for this code is? I've used the fsm as the basis for my esmtp library and would like to release esmtp under a simple BSD license.

Cheers,
--Geoff
View user's profile Send private message
timrila
Posted: Sun Jun 10, 2012 6:49 am Reply with quote
User Joined: 28 Mar 2012 Posts: 32
good article always make people feel happy, Useful information. This is going to save me a lot of time. I like your site.
Soccer Jerseys
Football Shirts
Netherlands Soccer Jersey
Barcelona Jersey
Cheap Soccer Jerseys
Germany Soccer Shirt
Spain Soccer Jersey
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum