On 8/15/2023 7:56 AM, Frozen Forest via curl-library wrote:
I have to send multiple attachments to*"To, Cc, Bcc" targets with
proper mail subject.*
If I use *payload_source *method, I can see subject and all recipients
are in correct group but I can't attach any file.
If I use *mime* method, I can't integrate my header to mail. So, I can
send all my files correctly to all my recipients but there is no
subject and Cc, Bcc groups.
*my codes are in here. Header related functions start from 146*
https://gist.github.com/ffreality/c5d4fbd1e7226ea887c226ab3ed3fef6
I integrated some into comments on the top to explain Unreal's workflow.
If I solve this problem with your help, I will happily open my plugin
to ecosystem as open source.
If you are attaching files I suggest that you take a look at the
smtp-mime example [1] rather than use payload_source (the
CURLOPT_READFUNCTION used in some other libcurl smtp examples).
[1]: https://curl.se/libcurl/c/smtp-mime.html
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html