Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for mail params with send method #81

Open
AkshayRajMaurya opened this issue Dec 8, 2022 · 11 comments
Open

Support for mail params with send method #81

AkshayRajMaurya opened this issue Dec 8, 2022 · 11 comments

Comments

@AkshayRajMaurya
Copy link

Hi,

the mail method in the SmtpRequests class with signature mail(CharSequence sender, CharSequence... mailParameters) has the capability to accept mailParameters, but the way send and sendInternal methods are written , it restricts the capability to pass mailParameters on users will and bounds it to available Extensions of SMTPUTF8 and 8BITMIME only. We would like to extend the capability to pass additional mail params. Should we contribute a change or can you suggest an alternative way we can do that ? We can use DefaultSmtpRequest(SmtpCommand.MAIL, params) but we want to keep the extended functionalities of sendInternal() method in place when placing the send request along with the additional mailParameters.

Thanks.

@AkshayRajMaurya AkshayRajMaurya changed the title Support for params with Mail From Support for mail params with send method Dec 8, 2022
@benimohit
Copy link

+1 for this enhancement. If someone can provide the write access to this repo or add this support, it will be highly appreciated.

@benimohit
Copy link

benimohit commented Dec 13, 2022

@jhaber @mcobrien
Tagging for attention :)

@mcobrien
Copy link
Collaborator

Hi there! The client, and the sendInternal method, are designed to use whatever SMTP features are most appropriate given the capabilities of the server, which is why they don't currently support arbitrary additional parameters.

What extra parameters do you want to include? I'm wondering how to best offer this and keep the interface simple. Thanks!

@benimohit
Copy link

benimohit commented Jan 4, 2023

@mcobrien We would like to use local extension, verbs starting with X to pass some information to our downstream MTAs.

@mcobrien
Copy link
Collaborator

mcobrien commented Jan 4, 2023

thanks @benimohit. I can't find an RFC for that feature, do you have a link for more details? How is it used?

@benimohit
Copy link

benimohit commented Jan 4, 2023

It is a private extension. It is short for Conversion Tag, which is a concept of our downstream MTA.
@mcobrien

@mcobrien
Copy link
Collaborator

mcobrien commented Jan 6, 2023

I wonder if a way to implement this cleanly would be to add overloads of send that accept MAIL and RCPT commands instead of strings representing the sender and recipients. If you want to submit a PR we can take a look. Thanks! 🙂

@AkshayRajMaurya
Copy link
Author

@mcobrien I was about to raise a PR but I guess I don't have access :
" remote: Permission to HubSpot/NioSmtpClient.git denied to AkshayRajMaurya."

@mcobrien
Copy link
Collaborator

Hey @AkshayRajMaurya did you fork the repo first? This guide might be useful. Thanks!

@AkshayRajMaurya
Copy link
Author

Hey @mcobrien I have created the pull request. Thanks a lot :)

@benimohit
Copy link

@mcobrien please check the PR. Thanks!

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

No branches or pull requests

3 participants