Adding EHLO to curl with smtp

If you would like to add the EHLO to the smtp url used in curl you will have to add it at the end of the url (test.example.com), like this:

--url "smtp:/smtp-relay.gmail.com:587/test.example.com"