Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Smtp client reset #9

Closed
wants to merge 3 commits into from
Closed

Conversation

fjace05
Copy link

@fjace05 fjace05 commented Dec 6, 2017

This is a pull request to remedy Issue #77 from the base repo. It breaks out the already existent Reset method on the Go Lang net/smtp Client library. For this fix, the method is added to the SenderCloser interface to make it accessible when running the "Daemon Mode". This will allow users to reset the channel instead of completely closing and reopening the channel after an error occurs while sending a message.

timeout: false,
}

netDialTimeout = func(network, address string, d time.Duration) (net.Conn, error) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the build error, the problem is here. If you capitalize NetDialTimeout that should fix it. (We exported this in #4).

@ivy ivy closed this Dec 7, 2017
@ivy
Copy link

ivy commented Dec 7, 2017

@fjace05 Sorry, I accidentally closed this pull request while moving some things around. 😓 I'm going to integrate your changes in another branch soon. Thanks for your patience.

@pedromorgan
Copy link

Reopend this, cos we need it @ivy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants