piknik icon indicating copy to clipboard operation
piknik copied to clipboard

Would like an example in docs of how to conditionally call parts of the mailbuider

Open einhverfr opened this issue 3 years ago • 1 comments

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.

einhverfr avatar Jan 21 '22 15:01 einhverfr

With the builder pattern, it doesn't seem to be possible to do that. I was struggling with the same issue.

JekRock avatar Mar 28 '22 13:03 JekRock