Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the recipients list.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionMailRecipients"; curl; Value )   More


Parameter Description Example value
curl The CURL session handle. $curl
Value First email address. ""


Returns "OK" on success.


Sets the recipients list.
Pass a list of recipients to pass to the server in your SMTP mail request. For passing several recipients, simply add more parameters to the function call.

Each recipient in SMTP lingo is specified with angle brackets (<>), but should you not use an angle bracket as first letter libcurl will assume you provide a single email address only and enclose that with angle brackets for you.

This option takes a list of items. So this function takes a variable number of arguments. If you call function with 2 parameters, you set an empty list. If you call it with 5 parameters, you set a list with 3 values.

See also MAIL_RCPT option in CURL manual.


Set three recipients:

MBS( "CURL.SetOptionMailRecipients"; $curl; $email1; $email2; $email3 )

See also

Created 18th August 2014, last changed 5th April 2017

CURL.SetOptionMailFrom   -   CURL.SetOptionMaxConnects

Feedback: Report problem or ask question.

MBS FileMaker tutorial videos