davidmoten / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supporting custom response after accepting a message

ShayArtzi opened this issue · comments

Hi,

First of all - this library is awesome! I really enjoined using it.

I have a small suggestion: It would be nice to have the option to return a customized message after accepting a message for delivery. The idea comes from Postfix which returns the message identifier (something like 250 Ok: queued as <MESSAGE-ID>).

If you are open to the idea, I can submit a pull request.

Thanks very much!

Hi.
The MessageHandler#data can return a custom string a success response. Of provided will be used instead standard one.

Hi,

Sorry If I wasn't clear - I forgot to mention I'm talking about returning a value from the BasicMessageListener interface, which is really simple to use but lacking this option.