Hi,
I have a problem in sending mail ......
#!/usr/bin/perl -w
$file_length = `cat file.txt | wc -l`;
if ( $file_length == 0) {} else {
`mail -s "Tool" <mymailid> < file.txt`;
}
Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (1 Reply)
Hi,
I have a problem in sending mail ......
#!/usr/bin/perl -w
$file_length = `cat file.txt | wc -l`;
if ( $file_length == 0) {} else {
`mail -s "Tool" <mymailid> < file.txt`;
}
Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (2 Replies)
i'm a avid fan of making the output of my scripts look pretty. so as a result i put in my scripts a lot of lines that are formed by either ****** or =======
now, outlook seems to have a problem with that. it always removes something that it calls "line breakers" from the emails my scripts send... (5 Replies)
Hi All,
I am using mailx command in shell script to send mail with output files as attachment to my email id.
When my colleague is running the shell script (script code mentioned below), he is getting the mail but without attachment. Attachment is appeared as junk characters in mail... (4 Replies)
Everytime i try sending mails using the command line have a reply form the daemon saying :
? 1
Message 1:
From MAILER-DAEMON Wed Apr 25 10:42:36 2007
Date: Wed, 25 Apr 2007 10:42:36 -0500
From: Mail Delivery Subsystem <MAILER-DAEMON>
To: malarie
MIME-Version: 1.0
Content-Type:... (0 Replies)
Im having trouble with sending a file with attachment. The attach file wasn't sent to to the recepient.
We tested this manually and it works but with the script it doesn't work. I'm thinking there is a problem with the script. Here is the code:
mailto=`/dir/dir2/dir3/GET_EMAIL_ADDR.sh... (9 Replies)
I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this:
mailx -s "AA_BBB_" APPostServices@xyz.com
APPostServices@xyz.com isa group but the mail is not sent
but when i send mail to another group it works fine.
What are the things that i... (1 Reply)
I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this:
mailx -s "AA_BBB_" APPostServices@xyz.com
APPostServices@xyz.com isa group but the mail is not sent
but when i send mail to another group it works fine.
What are the things that i... (1 Reply)
Hi, I need to send a email as a txt file and i used the commands,
(echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID"
I received email with a attachment with all data but i get all of them in one row.
For example:
If file.txt contains value... (1 Reply)
Hi Team,
I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB.
Not sure what is wrong in the command.
MSG_BODY1="hi"
LOG_FILE="a/b/c/log1.log"... (2 Replies)
Discussion started by: kmanivan82
2 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)