01-23-2007
Mailx Return Email Command
Hi,
I'm trying to use the Mailx Return Email Command with a file attachment.
If I use the file attachment by itself, it works ok. But If I add the return email command, it won't attach the file to email.
Subject, return_email_address
Send_email_address, Body, attachment, attachment_output_name
mailx -s "${subject}" -r ${return_email} ${addresses} <<EOF
${body_text}
~< ! uuencode ${attachment} ${attachment_output_name}
~.
EOF
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a KornShell script that has successfully been scheduled through Cron. We are in the process of changing over from Cron to using CA-Unicenter. To negative test the script I put a bad return code in. At the bottom of the script an e-mail is sent using mailx and then the return code is set... (1 Reply)
Discussion started by: Connie
1 Replies
2. UNIX for Advanced & Expert Users
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies
3. UNIX for Dummies Questions & Answers
Hey Guys,
I have been trying to send a email as ccto a email ID .However it seems the -c option is not working in HP UX system.
It is shooting an error as "mailx: illegal option -- c"
My script isin the below manner:
mailx -c EMAIL_IDS_CC# -s 'BDC reminder' -r sender@email.com... (1 Reply)
Discussion started by: rohit.shetty84
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'.
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
Discussion started by: manas6
0 Replies
5. Shell Programming and Scripting
Hi guys,
I have a question about the returning message of the mailx command.
if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message?
Thanks... (3 Replies)
Discussion started by: sheenshine
3 Replies
6. UNIX for Dummies Questions & Answers
Is there any way i can verify the email address (before sending the mail) using the mailx command ?
I know that
sendmail -bv email@address.com
can do it but there is a compatibility issues with the version of Unix we have. So mailx is the only command we can used at this point.
Any... (1 Reply)
Discussion started by: rak007
1 Replies
7. Shell Programming and Scripting
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies
8. Shell Programming and Scripting
Hi,
I am using mailx command to send an email and i took the body of the email from a file,
mailx -r gtt.org -s "Status Report " ss@org.com < $ProcessStatisticsFile
but now i want to declare the body of the email in the command itself.
I have tried with the following command but... (4 Replies)
Discussion started by: chinnu01
4 Replies
9. IP Networking
Hi, I have a question about mailx in Red Hat:
If I use 'mail userid@mydomain.com -- -f root@mydomain.com', the return mail address will be root@mydomain.com.
How can I make all mails sent from this system use root@mydomain.com as return address by default?
Thank you in advance!
nz (1 Reply)
Discussion started by: aixlover
1 Replies
10. Shell Programming and Scripting
Hello,
I am facing an issue with email in Linux. I am using mailx command to send email.
When I give invalid domain address then it is taking both sender and recipient as sender email and trying to send email.
Below is my command
echo -e "${EMAIL_TEXT}" | mailx -v -s "${SUBJECT}" -r... (5 Replies)
Discussion started by: yuvi
5 Replies
LEARN ABOUT DEBIAN
email::sender
Email::Sender(3pm) User Contributed Perl Documentation Email::Sender(3pm)
NAME
Email::Sender - a library for sending email
VERSION
version 0.110005
SYNOPSIS
my $message = Email::MIME->create( ... );
# produce an Email::Abstract compatible message object,
# e.g. produced by Email::Simple, Email::MIME, Email::Stuff
use Email::Sender::Simple qw(sendmail);
use Email::Sender::Transport::SMTP qw();
use Try::Tiny;
try {
sendmail(
$message,
{
from => $SMTP_ENVELOPE_FROM_ADDRESS,
transport => Email::Sender::Transport::SMTP->new({
host => $SMTP_HOSTNAME,
port => $SMTP_PORT,
})
}
);
} catch {
warn "sending failed: $_";
};
OVERVIEW
Email::Sender replaces the old and sometimes problematic Email::Send library, which did a decent job at handling very simple email sending
tasks, but was not suitable for serious use, for a variety of reasons.
Most users will be able to use Email::Sender::Simple to send mail. Users with more specific needs should look at the available
Email::Sender::Transport classes.
Documentation may be found in Email::Sender::Manual, and new users should start with Email::Sender::Manual::QuickStart.
IMPLEMENTING
Email::Sender itelf is a Moose role. Any class that implements Email::Sender is required to provide a method called "send". This method
should accept any input that can be understood by Email::Abstract, followed by a hashref containing "to" and "from" arguments to be used as
the envelope. The method should return an Email::Sender::Success object on success or throw an Email::Sender::Failure on failure.
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-06 Email::Sender(3pm)