Dear All,
We have following code to send mails from unix to users. We want to see few sentences of mail in bold font or to hightlight few lines in different colours. Could you please let me know how can we do it in function construct_body.
... (3 Replies)
Hi,
I would like to change the font size in bash. I know how do it in ksh:
F_VDOBLE="\033#6"
print "${F_VDOBLE}Esto es..."
But in bash I don't know
Could you help me please?
Many thanks! (5 Replies)
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
I am writing sql reports to an oracle database, spooling them to a file and emailing them with mailx. I use the syntax below. The reports do not format properly, unless I use the Courier New font. How do I set this with mailx?
mailx -s "MY REPORT, `date +'%D %r` " -r "REPORTING SYSTEM"... (2 Replies)
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Hi Guys..
yesterday i purchased a VPS server and installed sendmail on ubuntu 12.4 with Webmin & Apache runing webserver
problem is..
i can send mail via webmin user interface account to anybody to out side to any domain and able to recieve any mail from any domain..
Now main... (2 Replies)
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.
File
------------------------------------------------------------
Job Name: ABC
Start Time: 07/20/2019 07:32:39
End Time: 07/20/2019... (4 Replies)
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
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)