What are all the things that should be configured in order to send a mail from Unix box.
An eg. program of sending a mail will help me a lot!!!!!!
Thanks in advance
-Om (5 Replies)
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)
i am sending mails from my unix server to my mail id
i used sendmail option
previously it ran successfully
now it is not sending mails
what might be the problem
this is the message i am getting in /var/mail/abcdev file
how to rectify this?
----- The following addresses had permanent... (1 Reply)
Hi Frnds,
I have a task in my project wherein i have to send out a mail from my C++ code.With some file attachements.Please help me in this.
At a higher level wat i can tell is my code generated 3 csv file and i have to send these files as attachement.
My code is executed in unix... (6 Replies)
Hi,
I am using mailx command to send mail through Unix. But I am able to send mail only within my domain. If i want to send mail to some other server, it's not working. Like say If I want to send mail to someone on gmail or yahoo it's not working. but it's working fine within my company domain.... (3 Replies)
Dear Friends,
I have a shell script where the mail is being sent like this:
/usr/lib/sendmail -v ${CPA_ADMIN}
CPA_ADMIN="xx@abc.com"
Can we specify more than one email ids in this variable?
Is ther eany limit to the number of email ids I can specify in this variable, to whom the mail... (3 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)
Hello,
I want to send an email from unix. I tried following commands:
mailx -s "hello" manish.xxx@xxx.com < echo_manish
and
echo "Testing Mail" | mailx -s "hello" manish.xxx@xxx.com
but in both the commands nothing is happening. I mean it is neither giving any error nor I am receiving... (7 Replies)
Discussion started by: manishdivs
7 Replies
LEARN ABOUT MOJAVE
mime::field::paramval5.18
MIME::Field::ParamVal(3) User Contributed Perl Documentation MIME::Field::ParamVal(3)NAME
MIME::Field::ParamVal - subclass of Mail::Field, for structured MIME fields
SYNOPSIS
# Create an object for a content-type field:
$field = new Mail::Field 'Content-type';
# Set some attributes:
$field->param('_' => 'text/html');
$field->param('charset' => 'us-ascii');
$field->param('boundary' => '---ABC---');
# Same:
$field->set('_' => 'text/html',
'charset' => 'us-ascii',
'boundary' => '---ABC---');
# Get an attribute, or undefined if not present:
print "no id!" if defined($field->param('id'));
# Same, but use empty string for missing values:
print "no id!" if ($field->paramstr('id') eq '');
# Output as string:
print $field->stringify, "
";
DESCRIPTION
This is an abstract superclass of most MIME fields. It handles fields with a general syntax like this:
Content-Type: Message/Partial;
number=2; total=3;
id="oc=jpbe0M2Yt4s@thumper.bellcore.com"
Comments are supported between items, like this:
Content-Type: Message/Partial; (a comment)
number=2 (another comment) ; (yet another comment) total=3;
id="oc=jpbe0M2Yt4s@thumper.bellcore.com"
PUBLIC INTERFACE
set [\%PARAMHASH | KEY=>VAL,...,KEY=>VAL]
Instance method. Set this field. The paramhash should contain parameter names in all lowercase, with the special "_" parameter name
signifying the "default" (unnamed) parameter for the field:
# Set up to be...
#
# Content-type: Message/Partial; number=2; total=3; id="ocj=pbe0M2"
#
$conttype->set('_' => 'Message/Partial',
'number' => 2,
'total' => 3,
'id' => "ocj=pbe0M2");
Note that a single argument is taken to be a reference to a paramhash, while multiple args are taken to be the elements of the
paramhash themselves.
Supplying undef for a hashref, or an empty set of values, effectively clears the object.
The self object is returned.
parse_params STRING
Class/instance utility method. Extract parameter info from a structured field, and return it as a hash reference. For example, here
is a field with parameters:
Content-Type: Message/Partial;
number=2; total=3;
id="oc=jpbe0M2Yt4s@thumper.bellcore.com"
Here is how you'd extract them:
$params = $class->parse_params('content-type');
if ($$params{'_'} eq 'message/partial') {
$number = $$params{'number'};
$total = $$params{'total'};
$id = $$params{'id'};
}
Like field names, parameter names are coerced to lowercase. The special '_' parameter means the default parameter for the field.
NOTE: This has been provided as a public method to support backwards compatibility, but you probably shouldn't use it.
parse STRING
Class/instance method. Parse the string into the instance. Any previous information is wiped. The self object is returned.
May also be used as a constructor.
param PARAMNAME,[VALUE]
Instance method. Return the given parameter, or undef if it isn't there. With argument, set the parameter to that VALUE. The
PARAMNAME is case-insensitive. A "_" refers to the "default" parameter.
paramstr PARAMNAME,[VALUE]
Instance method. Like param(): return the given parameter, or empty if it isn't there. With argument, set the parameter to that
VALUE. The PARAMNAME is case-insensitive. A "_" refers to the "default" parameter.
stringify
Instance method. Convert the field to a string, and return it.
tag Instance method, abstract. Return the tag for this field.
SEE ALSO
Mail::Field
perl v5.18.2 2013-11-14 MIME::Field::ParamVal(3)