Currently, the
command of
supports writing directly to a cfconfig file, however the
does not allow the usage of the file and must be pointed to a server home directory. When attempting to use a file, the following error message is displayed:
If attempting to provision a cfconfig before a server is first started, this does not allow the pruning of the previous configuration via
, which is necessary because each
command appends a new mailserver to the array.
Update: I was hasty on this one as it looks like I fumble-fingered the path in the commandbox shell. It does attempt to parse the file.
It will, however, blow up if the there is no smtp key in the configuration:
This issue can be deleted or converted to address the issue above.
The to and from params are working when pointing at a JSON file for me:
It will, however, blow up if the there is no smtp key in the configuration:
That is correct. The smtp host is the “primary key” if you will of a mail server connection. The one thing that is required. So it is working as designed that the field is required. We can add a better validation message if we need to address it. How did you add the invalid configuration?
Like I said, the host name for the mail server is pretty much required. There’s no reason not to have it. I did however add some validation to prevent the ugly error message.