08-20-2002
To do it is simple. You write a script.
Put your subscribers in a file: % cat subscribers.txt
joe@yahoo.com
harry@mailroom.com
joan@hotmail.com
Then in your script you simple read the subscribers file in and run a loop -
#!/bin/csh -f
#
#
set all="`cat ~/subscribers.txt`"
#
foreach x ($all)
mailx -s"Bi-Weekly Newsletter" $x < your.mail
end
your.mail would contain your newsletter.
I don't know if it will work with html - I've never tried it.
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
Hi all,
Need you assistace.
is there any command available in UNIX to find the unix mail id ?
tried using 'mail' but no use
kindly helpe me out.
Thanks in advance.
manas (2 Replies)
Discussion started by: manas6
2 Replies
4. Shell Programming and Scripting
Hi
Could someone help me with the details on how to send an attachment through mail in unix.
I have an html file in my unix machine and I want this to be send to some mail id, plese help with the steps.
Regards
Ajay (2 Replies)
Discussion started by: ajaykumarboyana
2 Replies
5. UNIX for Dummies Questions & Answers
Hi.
I am running a script on solaris 10 and mailing it to my personal email.
the script is ran as user xxx, And i have edited the crontab for user xxx to run the script and mail it to my email account.
/network_check.sh | /usr/bin/mailx -s "Network Test" k454@hotmail.com
the sript... (2 Replies)
Discussion started by: k00061804
2 Replies
6. UNIX for Advanced & Expert Users
Hi,
I need to send email notifications from Unix/Linux box to users using mailx.
In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN.
Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies
7. HP-UX
We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies
8. 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
9. 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
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
www::topica::mail
WWW::Topica::Mail(3pm) User Contributed Perl Documentation WWW::Topica::Mail(3pm)
NAME
WWW::Topica::Mail - parse a single Topica mailing list mail
SYNOPSIS
my $index = WWW::Topic::Index->new($index_html);
foreach my $mess_id ($index->message_ids) {
# the mail has some information and also provides a link to the reply ...
my $mail = WWW::Topica::Mail->new($topica->fetch_mail($mess_id), $mess_id);
# which has other information (like the un-htmled mail and the email address) ...
my $reply = WWW::Topica::Reply->new($topica->fetch_reply($mail->id, $mail->eto), $mail->id, $mail->eto);
}
print "Next offset is ".$index->next."
";
print "Previous offset is ".$index->prev."
";
DESCRIPTION
Used to parse a single message page from Topica.com's mailing list indexes.
Message pages have the subject and the date and time of the mail being sent as well as a full name of each sender.
METHODS
new <page html> <id>
Takes the page html and the message-id and parses the html.
parse <html>
Parse the html to get message ids and next & prev offsets.
id
Get the id of this mail
eto
Get the eto of the next reply we need to get
date
Get the date of this mail
subject
The subject of the mail
from
Get the name of the person it was from
body
Get the body of the mail.
AUTHOR
Simon Wistow <simon@thegestalt.org>
COPYRIGHT
Copyright (c) 2004, Simon Wistow
perl v5.10.1 2006-01-03 WWW::Topica::Mail(3pm)