archaelus / esmtp Goto Github PK
View Code? Open in Web Editor NEWErlang SMTP library
License: Other
Erlang SMTP library
License: Other
Currently the client does not detect if a message is not sent and therefore it gets lost. It would be nice if the client would try to resend the message in this case. I discovered this during load testing in a system that is supposed to send mail on different events.
Would be great if this could be fixed.
esmtp does not insert a leading dot for every line that begins with a dot. I've quoted the RFC below.
See Section 4.5.2 of RFC 2821
* Before sending a line of mail text, the SMTP client checks the
first character of the line. If it is a period, one additional
period is inserted at the beginning of the line.
* When a line of mail text is received by the SMTP server, it checks
the line. If the line is composed of a single period, it is
treated as the end of mail indicator. If the first character is a
period and there are other characters on the line, the first
character is deleted.
Here is a patch to remove two remaining references to esmtp_fsm:
diff --git a/src/esmtp_client.erl b/src/esmtp_client.erl
index 88a1832..21537bb 100644
--- a/src/esmtp_client.erl
+++ b/src/esmtp_client.erl
@@ -2,7 +2,7 @@
%% @copyright Geoff Cant
%% @author Geoff Cant <[email protected]>
%% @version {@vsn}, {@date} {@time}
-%% @doc Simple one-shot client using esmtp_fsm.
+%% @doc Simple one-shot smtp client.
%% @end
%%%-------------------------------------------------------------------
-module(esmtp_client).
diff --git a/src/esmtp_sup.erl b/src/esmtp_sup.erl
index 8cd939f..bb5bfc2 100644
--- a/src/esmtp_sup.erl
+++ b/src/esmtp_sup.erl
@@ -46,7 +46,7 @@ init([]) ->
Clients = {"ESMTP Client",
{esmtp_client,start_link,[]},
temporary,2000,worker,
- [esmtp_fsm]},
+ [esmtp_client]},
{ok,{{simple_one_for_one,0,1}, [Clients]}}.
%%====================================================================
No errors, no warnings no runtime errors, in tells me that result is ok, but no new mail appears in my mailbox.
Hello,
I want to try send/receive mail with esmtp from local computer with dynamic ip, i bind my ip to static in dyndns, and bind domain to this computer. How can i configure/run/test esmtp? Is anywhere manual for this? It's realy?
Thank you.
I used gmail a/c but it has lost of issues,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.