hi,
i have a database table that automatically logs the errors in the database every 5 mins.
what i want to happen is to come up with a program using unix-c that gets all the information from the log table, i have a flag initially set to zero which means that the error is not yet sent, the... (2 Replies)
how can I send an email in UNIX, attach a file and cc a receipient?
i use the command below to attach a file (this works):
uuencode path/filename filename | mailx -s "subject" addr@host.com
here is how i cc a receipient (this also works):
i have a file named cc.lis and contains:
Hello... (2 Replies)
I have a requirement to send email to a group once I have done some tests. I tried the following from command line:-
mailx -s "Test REsults for today " myname@companyname.com <testresultfile.txt
but the email was not received by anyone
basically I followed the format:
mailx -s... (1 Reply)
Hi,
I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt
Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
Hi,
I know that we would be require HTML to change the font and color of the text of the output, if we wnt to send that through the email.
But I have managed to get below code, can someone look into it and let me know if i can acheive my requirement through this kind of code:
Following can... (9 Replies)
Hi,
I have create a unix prog file to validate data and send out an email. Below is the command used to send out email in the program. But it is not triggering the email.
Please advice on this.
(echo ${MESSAGE};uuencode "$FCP_OUT" "ERROR_REPORT.csv"; uuencode "$VALIDATION_RPT"... (1 Reply)
Hi All,
I need to send email from unix in the below format. But the email body is coming all in one single line.
How do i format the below text, so that the body of email is properly formatted.
Please help.
TO: <email id>
CC: <none>
BCC: <none>
Subject: Support: file GENERATION is... (3 Replies)
Hi,
I am trying to send an output of a script in an email.
I want to know if there is a way to modify the senders email not as my username on the host server but as one of the sender preset on outlook.
I was using
cat email.log | /bin/mailx -c cclist -r myemailid -s "subject" tolistids
... (4 Replies)
can you tell me what is the syntax if I need to keep someone in cc with the below email.
mailx -s "shell script completed successfully" arun@gmail.com < /dev/null (4 Replies)
Discussion started by: ramkumar15
4 Replies
LEARN ABOUT PHP
mb_send_mail
MB_SEND_MAIL(3) 1 MB_SEND_MAIL(3)mb_send_mail - Send encoded mailSYNOPSIS
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)