CURLOPT_MAIL_RCPT(3) curl_easy_setopt options CURLOPT_MAIL_RCPT(3)NAME
CURLOPT_MAIL_RCPT - list of SMTP mail recipients
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MAIL_RCPT,
struct curl_slist *rcpts);
DESCRIPTION
Pass a pointer to a linked list of recipients to pass to the server in your SMTP mail request. The linked list should be a fully valid list
of struct curl_slist structs properly filled in. Use curl_slist_append(3) to create the list and curl_slist_free_all(3) to clean up an
entire list.
When performing a mail transfer, each recipient should be specified within a pair of angled brackets (<>), however, should you not use an
angled bracket as the first character libcurl will assume you provided a single email address and enclose that address within brackets for
you.
When performing an address verification (VRFY command), each recipient should be specified as the user name or user name and domain (as per
Section 3.5 of RFC5321).
When performing a mailing list expand (EXPN command), each recipient should be specified using the mailing list name, such as "Friends" or
"London-Office".
DEFAULT
NULL
PROTOCOLS
SMTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.20.0. The VRFY and EXPN logic was added in 7.34.0
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_MAIL_FROM(3), CURLOPT_MAIL_AUTH(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_MAIL_RCPT(3)
Check Out this Related Man Page
CURLOPT_MAIL_FROM(3) curl_easy_setopt options CURLOPT_MAIL_FROM(3)NAME
CURLOPT_MAIL_FROM - SMTP sender address
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MAIL_FROM, char *from);
DESCRIPTION
Pass a pointer to a zero terminated string as parameter. This should be used to specify the sender's email address when sending SMTP mail
with libcurl.
An originator email address should be specified with angled brackets (<>) around it, which if not specified will be added automatically.
If this parameter is not specified then an empty address will be sent to the mail server which may cause the email to be rejected.
The application does not have to keep the string around after setting this option.
DEFAULT
blank
PROTOCOLS
SMTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.20.0
RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
SEE ALSO CURLOPT_MAIL_RCPT(3), CURLOPT_MAIL_AUTH(3),
libcurl 7.54.0 December 21, 2016 CURLOPT_MAIL_FROM(3)
I presently use the php function mail() to send to a mailing list with over 5000 recipients. Even with blind copy, I get timed out and the process takes too long.
I would like to set the job up as a background job. Can someone help me with the shell code for sending mailing as a background job. (2 Replies)
I have a basic question - how do I create and then use a mail list to be able to send a mailx email to multiple recipients.
I assume I create a test file using vi, containing the email addresses - but what is the format - are the addresses separated by ";", or by spaces, ....???
Is there a... (1 Reply)
I have to create a unix program that will mail the contents of a file to a list of users.The file to be mailed will be provided as an argument to the program on the command line. The list of users or mail recipients should be a ”variable” that is created inside the program
This program MUST be... (1 Reply)
hardware = raq550 running on strongbolt2.
my sendmail log is littered with this entry all through the day:
localhost did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
it occurrs every 15 minutes. I don't have any problem sending or receiving mail. I did a search on google but couldn't... (0 Replies)
Hi Friends,
I am facing one issue with my hpux server.
I used to send mail from the hpux server directly to the customer id.
By default the from address includes the complete hostname(eg:- user1@hostname.domain.com). My domain name is registered, but this individual hostname is not... (1 Reply)
can someone provide an example of a struct linked list, where it has strings as its values, and then how do I check if a specific string (say called buffer) exists in the list of structs?
i dont understand how to make a copy of it to check with
this is what i have
... (0 Replies)
Hi.
I want to create mailing list in my directory, however standart object classes groupOfUniqueNames and groupOfNames don't contain mail attribute. What is the common way to create mailing list in openldap? (0 Replies)
I am trying to find a code that can help me mail to a list of recipients which are in a text file.
Sample code
$cat recipient.txt
me@test.com
me1@test.com
me2@test.com
I want a mailx step that can read contents of recipient.txt and mail to all the users.
I don't want to use mails... (1 Reply)
Hi
I have a script that it sends emails to various recipients using mailx, but some of the recipients should be sent as BCC, but ~b flag when used in the following line, does not put the gmail address as BCC:
echo "node $output is down" | mailx -s "$output not pinging" sadf@xyz.com ~b... (8 Replies)