addFile

inline fun MessageBuilder.addFile(name: String, contentProvider: ChannelProvider, builder: AttachmentBuilder.() -> Unit): NamedFile(source)

Adds a file with name and contentProvider to files.

The corresponding attachment object can be configured with builder.

Adds a file with the given path to files.


inline fun MessageBuilder.addFile(path: Path, builder: AttachmentBuilder.() -> Unit): NamedFile(source)

Adds a file with the given path to files.

The corresponding attachment object can be configured with builder.