Sponsored Content
Full Discussion: mail question here
Top Forums UNIX for Dummies Questions & Answers mail question here Post 302073402 by RTM on Friday 12th of May 2006 02:42:36 PM
Old 05-12-2006
mail multiple recipients - different suggestions in this thread.
 

10 More Discussions You Might Find Interesting

1. How do I send email?

MAIL question for HP-Unix O/S

Has anyone written a script to attached a text file when sending an email using the MAIL command? I wrote a Unix Script to email an end-user a text file. I want the file to be an attachment. I've tried the unix command uuencode but this seems to be for a binary file. My text file is garbage... (3 Replies)
Discussion started by: dsthompson
3 Replies

2. UNIX for Dummies Questions & Answers

Mail question?

Hi, all, I use mail to send a file to my email account as follow: mail -v user@address.com < /user/text however, I received is a blank email without any content in it. How can I set up config correctly in the Solaris box? Any suggests so can send the whole text? Thank you in advance! Yun (2 Replies)
Discussion started by: yxiao
2 Replies

3. UNIX for Dummies Questions & Answers

question on mail server

Hi In the company I work for one guy ask me this question: Can you have several mail servers managing the same domain, in the same lan? My first answer was that it's not possible cause each mail server must not share a domain, but .... I'm not sure. Can anyone more enlightened than me,... (1 Reply)
Discussion started by: piltrafa
1 Replies

4. UNIX for Dummies Questions & Answers

New User/Mail setup question. PLEASE help.

OK, here's the situation. Our regular computer guy left the company without warning. We are in the process of replacing him with someone much more knowlegeable than I, but as of right now, I have been handed the duties. Our mail server is running OpenBSD and I need to set up a new employee with an... (3 Replies)
Discussion started by: Rotting
3 Replies

5. UNIX for Dummies Questions & Answers

Question on SCP and Mail command

Hey Guys, I created a script where i am trying to do scp from one machine to another and then from another to another remote machine. I am having a log file also with the current date and time stamp in which i have been successful. I would like to delete the log files older than 30 days in which... (9 Replies)
Discussion started by: chris1234
9 Replies

6. UNIX for Dummies Questions & Answers

/VAR/SPOOL/MAIL question

Hi, We have all the user account in a home direcory where their mail is stored and retrieved by email clients. We do however have /var/spool/mail with all the user accounts in it as well Our sendmail.cf is configured to use /var/spool/mqueue as the queue so .what is /var/spool/mail being used... (3 Replies)
Discussion started by: mojoman
3 Replies

7. UNIX for Dummies Questions & Answers

read mail question

how do I save a email I just read to a new file? Thanks. (3 Replies)
Discussion started by: drew211
3 Replies

8. UNIX for Dummies Questions & Answers

Question about sending mail

Hello im new user for linux and i have a question. In file address.txt i have 2 email addressees they are separated with , and i need to send email on those addresses with template can you guys give me some advice pls. And i´m writing this script in Bash (4 Replies)
Discussion started by: Whiskas
4 Replies

9. Linux

A simple question about mail command

Simple question: i read mail n°4,how to return to list of messages? (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

10. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
CURL_SETOPT_ARRAY(3)							 1						      CURL_SETOPT_ARRAY(3)

curl_setopt_array - Set multiple options for a cURL transfer

SYNOPSIS
bool curl_setopt_array (resource $ch, array $options) DESCRIPTION
Sets multiple options for a cURL session. This function is useful for setting a large amount of cURL options without repetitively calling curl_setopt(3). PARAMETERS
o $ch -A cURL handle returned by curl_init(3). o $options - An array specifying which options to set and their values. The keys should be valid curl_setopt(3) constants or their integer equivalents. RETURN VALUES
Returns TRUE if all options were successfully set. If an option could not be successfully set, FALSE is immediately returned, ignoring any future options in the $options array. EXAMPLES
Example #1 Initializing a new cURL session and fetching a web page <?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options $options = array(CURLOPT_URL => 'http://www.example.com/', CURLOPT_HEADER => false ); curl_setopt_array($ch, $options); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?> Prior to PHP 5.1.3 this function can be simulated with: Example #2 Our own implementation of curl_setopt_array(3) <?php if (!function_exists('curl_setopt_array')) { function curl_setopt_array(&$ch, $curl_options) { foreach ($curl_options as $option => $value) { if (!curl_setopt($ch, $option, $value)) { return false; } } return true; } } ?> NOTES
Note As with curl_setopt(3), passing an array to CURLOPT_POST will encode the data as multipart/form-data, while passing a URL-encoded string will encode the data as application/x-www-form-urlencoded. SEE ALSO
curl_setopt(3). PHP Documentation Group CURL_SETOPT_ARRAY(3)
All times are GMT -4. The time now is 12:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy