01-28-2008
Pull E-mail address from file, send e-mail
Hello,
I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail.
How can I use the following awk statement in a perl script?
grep UNIXadmins /root/mail.conf | awk '{ print $2}'
and use the output to send a e-mail.
Any help would be great
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi, Gurus,
I need some help with sending mail out from my UNIX server:
It is running Solaris 2.6 and the sendmail version is 8.8.
Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null
Version 8.8.8+Sun
Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET
... (5 Replies)
Discussion started by: b5fnpct
5 Replies
2. UNIX for Dummies Questions & Answers
Using Mailx command i.e
mailx -s "subject" chinni@hotmail.com < \tmp\chin
this command executed sucessfully but not able to receive the mail in chinni@hotmail.com
please help. (1 Reply)
Discussion started by: chinnigd
1 Replies
3. UNIX for Dummies Questions & Answers
HP-UX B11.23 ia64
I have a users mail inbox in /var/mail
I want to send all the mail there to another address (an Exchange address).
At the Exchange address, I want it to appear as the original separate emails, with attachments in their original form (e.g. still MIME encoded).
Is that... (6 Replies)
Discussion started by: LisaS
6 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: mani_isha
0 Replies
5. UNIX for Advanced & Expert Users
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)
Discussion started by: amitranjansahu
2 Replies
6. Shell Programming and Scripting
I have a file which contains few email address. I have few scripts which use the same mail address. so if any change in mail id like if any user do not want to receive the mail i can just edit a single file instead of many scripts. So i want the scripts to use that file. How can this be done. (2 Replies)
Discussion started by: gpk_newbie
2 Replies
7. UNIX for Advanced & Expert Users
Hi all,
I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix.
How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies
8. Shell Programming and Scripting
Hello,
I am using centos-6.2
I have apache server,php5 on my system and I want to send mail using sendmail on my system.
when I try to send mail from shell that time mail is succesfully sent to respective address()
but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies
9. Red Hat
Hi,
I am trying to send a mail using "mail" command in unix. I wanted to give sender name and sender address. I tried different options ,but still it shows only mail address(No name).
mail -s "Alert mail : Nothing running !!!" $email -- -F"Mail Alert" -fno-reply@alert.com
But I am getting... (4 Replies)
Discussion started by: jaggy
4 Replies
10. UNIX for Advanced & Expert Users
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 DEBIAN
mlmmj-process
mlmmj-process(1) General Commands Manual mlmmj-process(1)
NAME
mlmmj-process - process mail for an mlmmj managed mailinglist
SYNOPSIS
mlmmj-process -L /path/to/list -m /path/to/mail [-h] [-P] [-V]
-h: This help
-L: Full path to list directory
-m: Full path to mail file
-P: Don't execute mlmmj-send (debugging only)
-V: Print version
DESCRIPTION
This is the binary which processes a mail. Examples of what such processing is:
o Access control
Using the access rules specified in <listdir>/control/access to perform access control to the list. This is done before headers are
stripped, so one can create allow rules based on headers that are later stripped.
o Header stripping
Headers specified in <listdir>/control/delheaders are deleted from the mail.
o Header addition
Headers specified in <listdir>/control/customheaders are added to the mail. This could be headers like List-ID: or Reply-To:
o List control
In case there's a mail with a recipient delimiter it's not a regular list mail. Processing of these happens in mlmmj-receive as well.
Examples of such are subscription requests, mails to owner etc. It will base it's recipient delimiter detection on the Delivered-To:
header if present. If not, the To: header is used.
o Moderation
If the list is moderated, it will happen in mlmmj-process.
When processing is done, it will invoke the needed binary according to whatever mail it is. If it's a subscription request it will invoke
mlmmj-sub, if it's a regular list mail it will invoke mlmmj-send.
SEE ALSO
The file TUNABLES from the mlmmj source distribution or in the documentation directory of the operating system distribution.
AUTHORS
This manual page was written by the following persons:
Soren Boll Overgaard <boll@debian.org> (based on html2man output)
Mads Martin Jorgensen <mmj@mmj.dk>
mlmmj-process September 2004 mlmmj-process(1)