piknik
piknik copied to clipboard
Would like an example in docs of how to conditionally call parts of the mailbuider
Is your feature request related to a problem? Please describe. I am generating emails from an external input. I may or may not have cc, bcc, or attachments. The messagebuilder type doesn't seem to support setting these conditionally.
Is this currently supported?
Describe the solution you'd like An example in the docs where one could set the CC if an supplied Option<String> cc.is_some()
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
With the builder pattern, it doesn't seem to be possible to do that. I was struggling with the same issue.