Coder Social home page Coder Social logo

esmtp's People

Contributors

andreashasse avatar archaelus avatar benbro avatar benoitc avatar borisfaure avatar robertoaloi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

esmtp's Issues

Mails are lost if sending fails

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.

Encoding issue for lines starting with a dot

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.

esmtp_fsm cruft

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]}}.

 %%====================================================================

Just dont work at all

No errors, no warnings no runtime errors, in tells me that result is ok, but no new mail appears in my mailbox.

Send and receive mail from local computer with dynamic ip

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.

esmtp is not working with R14B

I used gmail a/c but it has lost of issues,

  1. connect(Host, Port, Type) --> Type receives the value 'new_ssl' but it suppose to be 'ssl'
  2. sendemail({Host,Port,SSL,Login},Ehlo,From,To,Msg) ->
    {ok, S1, {220, _Banner}} = esmtp_sock:read_response(S0) ends up returning {ok, S1, {220, _, _Banner}}
    after that, decode is not aware of {PLAIN, AUTH}, am I missing something?
    Please help me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.