My problem was header integration while using mime example.

as you can see in my gist, I commented out payloads and also used mimes.
I couldn't solve the problem until now.

Some reason, slist_append didn't append info from my header array. So, I
used same variables on append directly without \r\n at the end.

Currently it works as expected (mostly).
I just need to improve message body.

On Wed, Aug 16, 2023, 12:38 AM Ray Satiro via curl-library <
curl-library@lists.haxx.se> wrote:

> 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
>
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to