LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2011, 11:45 PM   #16
cia_gov
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0

Sorry brainfart.

Code:
$ bash -x /usr/local/bin/hholidayEmailer.sh
+ INPUT=aContactList.csv
+ OLDIFS=' 	
'
+ IFS=,
+ '[' '!' -f aContactList.csv ']'
+ read FIRSTNAME LASTNAME EMAIL
+ clear

+ SUBJECT=Holidays
+ EM1=' Dear bob, \n\n'
+ EM2='Seasons Greetings & Happy Holidays to you all! \n\n'
+ EM3='From Me. \n\n'
+ MYMESSAGE=' Dear bob, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: bob@'sn.com
+ echo -e ' Dear bob, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: bob@ms'.com
 Dear bob, 

Seasons Greetings & Happy Holidays to you all! 

From Me. 

 Sent To: you@msn.com
+ echo -e ' Dear you, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: you@ms'.com
+ mailx -s Holidays $'you@msn.com\r'
'): Format of RFC822 object is bad.comom
+ sleep 2
+ read FIRSTNAME LASTNAME EMAIL
+ clear

+ SUBJECT=Holidays
+ EM1=' Dear tom, \n\n'
+ EM2='Seasons Greetings & Happy Holidays to you all! \n\n'
+ EM3='From Me. \n\n'
+ MYMESSAGE=' Dear tom, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: tom@gm'il.com
+ echo -e ' Dear tom, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: tom@gmai'.com
 Dear tom, 

Seasons Greetings & Happy Holidays to you all! 

From Me. 

 Sent To: someone@gmail.com
+ echo -e ' Dear someone, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: someone@gmai'.com
+ mailx -s Holidays $'someone@gmail.com\r'
'): Format of RFC822 object is badl.comom
+ sleep 2
+ read FIRSTNAME LASTNAME EMAIL
+ clear

+ SUBJECT=Holidays
+ EM1=' Dear sam spade, \n\n'
+ EM2='Seasons Greetings & Happy Holidays to you all! \n\n'
+ EM3='From Me. \n\n'
+ MYMESSAGE=' Dear sam spade, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: samspade@'bm.com
+ echo -e ' Dear sam spade, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: samspade@ib'.com
 Dear sam spade, 

Seasons Greetings & Happy Holidays to you all! 

From Me. 

 Sent To: samspade@ibm.com
+ echo -e ' Dear sam spade, \n\nSeasons Greetings & Happy Holidays to you all! \n\nFrom Me. \n\n Sent To: samspade@ib'.com
+ mailx -s Holidays $'samspade@ibm.com\r'
'): Format of RFC822 object is badomom
+ sleep 2
+ read FIRSTNAME LASTNAME EMAIL
+ IFS=' 	
'
+ exit 0

Quote:
Originally Posted by Dark_Helmet View Post
Replace "./send_email_script.sh" with the path and filename to the script you've written and saved.
 
Old 12-10-2011, 11:49 PM   #17
cia_gov
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
I appreciate all the help, it is late for me over here so I need to go off-line.

Thanks again all, until tomorrow.
 
Old 12-10-2011, 11:52 PM   #18
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I'm gonna take a stab and say that it looks like maybe a line ending problem.

Did you make the csv file in linux or windows?
 
Old 12-11-2011, 12:00 AM   #19
cia_gov
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Original Poster
Rep: Reputation: 0
[solved]

Dark_Helmet,

I just ran:

Code:
$ dos2unix aContactList.csv
It works now, I forgot that the original contact file was from winblowz.

Thanks for the help!



Quote:
Originally Posted by Dark_Helmet View Post
I'm gonna take a stab and say that it looks like maybe a line ending problem.

Did you make the csv file in linux or windows?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] piping email to a bash script for processing mark1967 Programming 11 09-07-2011 02:02 PM
sending email w a bash script - SUBJECT problem zimbot Linux - General 4 02-16-2011 02:38 PM
Write a script to send an email from bash kpelczar Linux - Software 5 02-09-2005 04:19 PM
bash script to email updated ip ericnmu Linux - Networking 1 10-01-2004 10:30 PM
bash script, parsing email addresses kepler Programming 6 01-26-2004 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration