Skip to content

[SMTP] Passing NOTIFY option to CURLOPT_MAIL_RCPT #8232

@rperrot

Description

@rperrot

Hi,

is there a way to pass the NOTIFY option to the CURLOPT_MAIL_RCPT option ?

My goal is to achieve something like that :

RCPT TO: <foo@bar> NOTIFY=SUCCESS,FAILURE

If I pass the option directly after my recipient, there's a bracket that is inserted at the end, that cause an issue with the SMTP server.

RCPT TO:<foo@bar> NOTIFY=SUCCESS,FAILURE>

In my code, I created the curl_slist and for my only recipient, I set a string that already contains a bracket. For instance something like that :

curl_slist_append( recipients, "<foo@bar> NOTIFY=SUCCESS,FAILURE" );

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions