This is a discussion on Shell Script To Send Email via SMTP username and password within the Shell scripting forums, part of the Development/Scripting category; hey.. i am seeking for a linux script(Shell script) that reads from text file "email addresses" and send a "message" ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
hey..
i am seeking for a linux script(Shell script) that reads from text file "email addresses" and send a "message" by smtp server which i set ! for example.. lets say that i have in my shell 2 files! one file includes the email addresses that i wanna send to for example.. the file which is named emails contains :- koko @hotmail.com veko@hotmail.com xxxxxxx@.....com ... and the second file which has the message for example:. the file message contains the letter "welcome all to my world" now i want to send the letter/message "welcome all to my world" to the email addresses that i mentioned above "koko@hotmail.com veko@hotmail.com ,,etc" *note: i could use the pine / mail command ,, but as you know all.. pine and mail sends to junk/or as a spam for hotmail.. so i wanna be sure that my message was delivered to users in their inbox and not in junk for that reason i wanna specific/special script mailer that sends via my "gmail" account that i set(configure) for example:- port:23 smtp-server:smtp.gmail.com user:eawedat password:***** and to send via my email.. the script should look like this to run in linux.. ./mail emails message I hope that u understand me. thanks. |
| Sponsored Links | ||
|
|
|
||||
|
This is not hard, you have many choices
# 1 - Configure local email server to send an email via ISP SMTP server and write normal shell scrip to router all mail using mail command. This is easiest and works with everything. # 2 - Use special smtp mail client such as Software :: SendEmail - Send email with this free command line email client mailsend - send mail via SMTP Protocol Google for other software # 3 - use perl / php to send email php example PHP Send Email Using Authenticated SMTP Mail Server In Real Time Perl code Sending mail with Perl mail script |
|
||||
|
Quote:
Configure sendmail as a smart host : nixCraft |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shell script to send mail for each login. | ephdia | Shell scripting | 2 | 11-27-2007 04:42 PM |
| shell scripting + send mail with header | ephdia | Shell scripting | 0 | 11-27-2007 11:29 AM |
| A script for generating cPanel backup and send as email | vivekv | Shell scripting | 0 | 10-20-2007 08:28 PM |
| can not find the username in /etc/passwd file | subrata1in | Getting started tutorials | 5 | 03-27-2007 11:45 AM |
| Shell script to supply or input a password passphrase | kasimani | Shell scripting | 1 | 02-21-2007 09:21 AM |