Auto emails from within the program


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Auto emails from within the program
# 8  
Old 08-06-2018
Massive, yes. Lots of improvement opportunities, at first glance. I can't see any command in it to send mail.
This User Gave Thanks to RudiC For This Post:
# 9  
Old 08-06-2018
The whole program is huge and like you say my goal is to get it down to a sensible level, without losing its capability to compile etc, before I hand it over in a couple of years when retirement beckons.
Thats where the problem lies then. It goes through the motions but thats it.
# 10  
Old 08-06-2018
You may want to draw / sketch the entire picture, showing all routines / scripts (not in their entirety, please!) and their interrelation or sequence they're called. I can see your little script, a ./conv08, a ./conv09 ... is there more to it? Somewhere, there must be the command to finally send the mail.
# 11  
Old 08-06-2018
just got back home.
it starts with ./conv right up to .conv09
When to gets to ,/con08 it then collects all the files and ./conv09 should send them all out.
Ned changed it so when it got to .conv09 it went to Deputy, thats me, then I configured that to suit my email which he recomneded I set up using Thunderbird.
Nightmare I know.

------ Post updated at 04:26 PM ------

Code:
# #!/bin/bash

# This file must be amended to suit the RosterDiary deputy's email account.
# Set up Thunderbird for RosterDiary's email account.
# Start Thunderbird
# Write a message to send from this account.
# Make sure you are OFFLINE.

# Sending the message whilst OFFLINE will send it to the Thunderbird Admin "outbox" folder.
# Retrieve this so you can view it,  ascertain the details below.
# Key them here, below, SAVE THE FILE!
#
#
#

SendFromAccount="hotmail.com"
XIdentityKey="id2"      # X-Identity-Key:
XAccountKey="account3"  # X-Account-Key:
SendFromField="Paul Overington <user.name@hotmail.com>" # From:
ReplyTo="user.name@hotmail.com"
FCCField="imap://user.name%40hotmail.com@imap-mail.outlook.com/Sent"    
UserAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1"
OutboxFileName="imap://user.name%40hotmail.com@imap-mail.outlook.com/Outbox" # "Outbox" for results


Last edited by RudiC; 08-06-2018 at 06:53 PM.. Reason: Corrected closing CODE tag; obfuscated real world mail account name
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Solaris

Emails issue

Dear all, I am facing an issue in my data Center environment related to mails being generated by users on my machines. Let me walk you through the issue one by one. Each system (100+ servers in my DC) has a user sysmon on it that sends mails to a specific Email ID. The user runs scripts... (8 Replies)
Discussion started by: Junaid Subhani
8 Replies

3. UNIX for Dummies Questions & Answers

send emails

hi guys I need to send emails to some accounts 1. I need sendmail up and running right? 2. I need my local sendmail to use an existing SMTP server to send emails (10.x.x.x)? in that case what I need to configure to send emails? since using mail myaccount@companyame.com is not sending emails... (3 Replies)
Discussion started by: karlochacon
3 Replies

4. Programming

Sending emails in C program for multiple machines on Linux/OSX

Hey guys, i am creating a tool that'll run a couple network test, generate a report then email the report. Now i a bit stuck with the email sending part... I tried at first a script which worked on some machines but then it'll work fine on some machine and act up on others... I can't really rely... (2 Replies)
Discussion started by: Jess83
2 Replies

5. UNIX for Dummies Questions & Answers

Emails on HP-UX

Hi Guys I am running Oracle database on HP-UX, every now and then I get emails that are sent to me by root. When check with the sysadmin know one have a clue as to where does the emails come from. I need to stop this emails...how do I check which script is sending me the emails. Thanks ... (0 Replies)
Discussion started by: Phuti
0 Replies

6. UNIX for Dummies Questions & Answers

duplicate emails

Hi all new here. Question. My mail server is sending out duplicate emails but its not system wide. We have several virtual host that use our email server and some are having the duplicate emails issue and some are not. For example in the office some people are getting duplicate emails but i am... (1 Reply)
Discussion started by: mcraul
1 Replies

7. UNIX for Dummies Questions & Answers

Creating emails

Hi, I posted here 2 months ago, saying I wanted to learn UNIX for my work running a small ISP. I had the problem of practically no technical support for our system. Many courses later, I can just about do everything I need to do. The server is a FreeBSD i386. I can now create email accounts for... (4 Replies)
Discussion started by: ferret495
4 Replies

8. UNIX for Dummies Questions & Answers

how to capture bounced emails

Hi, I use mailx to send short notifications to a bunch of users ( in Lotus Notes ). The undeliverable emails are going to the Notes' Dead Letter basket and creating a problem. I am told by the Notes Admin that I need to specify a 'Return address' so that the bounced emails can go there. I can not... (1 Reply)
Discussion started by: ray1972
1 Replies

9. UNIX for Dummies Questions & Answers

auto startup of a program

how do i make a program run at system startup? is there a hirarchy i have to consider? is there any equivalent to an NT "Service" in unix? how do you set it up? thanx Ron (2 Replies)
Discussion started by: exoron
2 Replies
Login or Register to Ask a Question