Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imap_mail(3) [php man page]

IMAP_MAIL(3)								 1							      IMAP_MAIL(3)

imap_mail - Send an email message

SYNOPSIS
bool imap_mail NULL NULL NULL NULL (string $to, string $subject, string $message, [string $additional_headers], [string $cc], [string $bcc], [string $rpath]) DESCRIPTION
This function allows sending of emails with correct handling of Cc and Bcc receivers. The parameters $to, $cc and $bcc are all strings and are all parsed as RFC822 address lists. PARAMETERS
o $to - The receiver o $subject - The mail subject o $message - The mail body, see imap_mail_compose(3) o $additional_headers - As string with additional headers to be set on the mail o $cc - o $bcc - The receivers specified in $bcc will get the mail, but are excluded from the headers. o $rpath - Use this parameter to specify return path upon mail delivery failure. This is useful when using PHP as a mail client for multi- ple users. RETURN VALUES
Returns TRUE on success or FALSE on failure. SEE ALSO
mail(3), imap_mail_compose(3). PHP Documentation Group IMAP_MAIL(3)

Check Out this Related Man Page

MB_SEND_MAIL(3) 							 1							   MB_SEND_MAIL(3)

mb_send_mail - Send encoded mail

SYNOPSIS
bool mb_send_mail NULL NULL (string $to, string $subject, string $message, [string $additional_headers], [string $additional_parame- ter]) DESCRIPTION
Sends email. Headers and messages are converted and encoded according to the mb_language(3) setting. It's a wrapper function for mail(3), so see also mail(3) for details. PARAMETERS
o $to - The mail addresses being sent to. Multiple recipients may be specified by putting a comma between each address in $to. This parameter is not automatically encoded. o $subject - The subject of the mail. o $message - The message of the mail. o $additional_headers (optional) - String to be inserted at the end of the email header. This is typically used to add extra headers (From, Cc, and Bcc). Multiple extra headers should be separated with a CRLF ( ). Note When sending mail, the mail must contain a From header. This can be set with the $additional_headers parameter, or a default can be set in php.ini. Failing to do this will result in an error message similar to Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing. The From header sets also Return-Path under Windows. Note If messages are not received, try using a LF ( ) only. Some Unix mail transfer agents (most notably qmail) replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with RFC 2822. o $additional_parameter -$additional_parameter is a MTA command line parameter. It is useful when setting the correct Return-Path header when using send- mail. RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.0.0 | | | | | | | The Content-Type and Content-Transfer-Encoding | | | headers may be redefined as of PHP 5.0.0. Before | | | this time, the values defined by mb_language(3) | | | are always used. | | | | +--------+---------------------------------------------------+ SEE ALSO
mail(3), mb_encode_mimeheader(3), mb_language(3). PHP Documentation Group MB_SEND_MAIL(3)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

e-mail client supporting HTTP mail servers

Hi all I want to know, is there any e-mail client in linux which supports HTTP mail servers. i am using fedora2. as far as investigated or tried I only find POP or IMAP mail server configuration in mozilla mail, ximian and there were no option such as HTTP. I can easily see my e-mail while i am... (0 Replies)
Discussion started by: babayeve
0 Replies

2. UNIX for Dummies Questions & Answers

Sendmail question

Hello to all, I configured sendmail on a solaris 9 system the same as another server that the one I configured will replace. I transferred all the required files from the original system to the new one as well ar the /var/mail directory. The sendmail daemon is running however when I try to... (4 Replies)
Discussion started by: GLJ@USC
4 Replies

3. SuSE

sles 9 - sudden high load avg

Hi Running SLES 9(4) on PE 1950. I saw yesterday that the load average on the machine was 54 and keeping around that number. Later I found there were 54 /USR/SBIN/CRON processes running in the system. I tried to kill using killall, kill -9 pid but they did not get killed. I also tried stopping... (1 Reply)
Discussion started by: upengan78
1 Replies

4. Shell Programming and Scripting

Using CP in bash script

I've got something to this effect: read -n1 -p "Continue? (y/n)" if ]] then printf "\n" && cp -prv $WODI/* $OTHERDRIVE && chown -R mail:mail $MAIL/$userdir && echo -e "Files copied from '$WODI/' to '$OTHERDRIVE/' and chowned... (1 Reply)
Discussion started by: mandelbrot333
1 Replies

5. Shell Programming and Scripting

Running php from cron - working up to a point

Hi there, I am struggling to try and work out what is going wrong with a cron job i have running daily which opens up an imap mailbox and extracts a rar file to a directory on the web server. The script works ok when run manually, and when it is running from cron, I can see that it opens up the... (2 Replies)
Discussion started by: nicky77
2 Replies

6. OS X (Apple)

Email broken

Hi my email appears to be broken. Well the whole server is barley responding. I can log in through ssh and look at the system.log file sudo tail -f -n 1000 /var/log/system.log When i do this the errors being recorded is off the scale. E.g 100's of entries per second. The errors are... (8 Replies)
Discussion started by: timgolding
8 Replies

7. Ubuntu

Is it possible to fetch my local email log to thunderbird

Hi, I wonder if it possible to read my local user mail log or root mail log in my ubuntu laptop using thunderbird mail client. Im using my the TB mail client for may email management and wonder if it possible to add it to my mail account in TB. You can read your mail log via command mail or... (1 Reply)
Discussion started by: jao_madn
1 Replies

8. UNIX for Dummies Questions & Answers

Accessing mail server from UNIX

Hi all, I need to access the mails sent to me in a mail server(IMAP mail server), and download the attachment sent in the mail to the unix environment. Please help me to acheive the same. I am not able to install python , PHP modules in my unix box due to installation restriction in my work... (3 Replies)
Discussion started by: arun1377
3 Replies

9. Shell Programming and Scripting

Dynamically referencing a Path

How would I reference a source path (where I have a script pulling data from) that changes location? For example, a Mail folder is being used as a source to pull some data, but somebody could move the folder around in the GUI of Mail, changing it's location in the filesystem (that I am referencing... (11 Replies)
Discussion started by: sudo
11 Replies

10. UNIX and Linux Applications

Mutt Configuration for Yahoo! (Working sol -)

First configure the directory as so-- mkdir -p ~/.mutt/cache/headers mkdir ~/.mutt/cache/bodies touch ~/.mutt/certificates Then create the config file -- touch ~/.mutt/muttrc Now, edit the file sudo nano ~/.mutt/muttrc Thanks to iandexter/github for the script:- # Gmail... (1 Reply)
Discussion started by: puneet_bapna
1 Replies

11. Shell Programming and Scripting

Auto emails from within the program

Hi All, Would love a little help with a program that I have been left by a friend, that recently passed, and as a legacy to him, would really love to keep it going and ideally expand its distribution around our company. I have the program running but have come across a stumbling block when... (10 Replies)
Discussion started by: nobbyall
10 Replies

12. Shell Programming and Scripting

Removing my name from Send From List

For some unknown reason, to me anyhow, every time I send out mail to all the users it keeps showing my name first instead of the email address name I am using. Not sure what I can delete at the moment as it all works as shown in the code# #!/bin/bash # This file must be amended to suit the... (2 Replies)
Discussion started by: nobbyall
2 Replies