Need help on sending emails to Lotus Notes from Unix


 
Thread Tools Search this Thread
Operating Systems AIX Need help on sending emails to Lotus Notes from Unix
# 1  
Old 04-23-2010
Need help on sending emails to Lotus Notes from Unix

Hi,

I am new to UNIX and any help is greatly appreciated.

Requirement:

Need to check the directory and if the directory has some files then an email needs to be sent to the email ID on Lotus Notes.

I need help on sending an email to email ID on Lotus Notes notifying that the files are present under a particular directory.

Thanks,
Neetu
# 2  
Old 04-23-2010
Probably a little simple but in a shell script put;

Code:
#!/bin/ksh

find /dir -type f > /tmp/filelist.out

if [ -s /tmp/filelist.out ]
  then
    echo "There are files in the /dir directory" | mailx -s subject email_address
fi

Not real familar with Lotus Notes but I am guessing it just another email system such as Outlook.

---------- Post updated at 08:13 PM ---------- Previous update was at 07:26 PM ----------

Also it sounded like you wanted to run this script automatically, so you would want this running in cron.

Code:
man crontab

will get the info you need to configure this step.
# 3  
Old 04-24-2010
Not to mention you need to know if their is an SMTP mail gateway between the server and Lotus Notes as that may also need to be configured in the sendmail.cf file and perhaps even in the Mail relay itself.
# 4  
Old 04-26-2010
uuencode as RTF and send via mailx

When going to Outlook (use to use Notes and this worked then…) on a PC I like to use uuencode to convert the file to a rtf allowing for founts to be used by email client:

cat <file> |uuencode <file>.rtf |mails –s “This is an attached text doc” me@mailhouse.com

To be safe on the continent use strings to omit an extended characters:
strings <file> |uuencode <file>.rtf |mails –s “This is an attached text doc” me@mailhouse.com

If you have data that’s “,” separated and want it to be opened by a spreadsheet label the file as CSV:
cat <file> |uuencode <file>.csv |mails –s “This is an attached CSV” me@mailhouse.com




ALSO: mailx -v will show the connection flow... Helps if you don't know if the SMTP has been configured. AND, mailq will show any outgoing e-mails that are still sitting around on the local server.



Hope this helps,


mb

Last edited by bresett; 04-26-2010 at 05:20 PM.. Reason: Tyyopo
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading a file from Lotus notes DB

Hi, is there any way Unix shell script can directly read a mail on a mail server (Lotus notes) and save it as a text file in a unix directory ? For eg mail can be at abc@xyz.com and the same should be stored at home/script on def.com Thanks in advance, CD (2 Replies)
Discussion started by: cdprasad.ait
2 Replies

2. UNIX for Dummies Questions & Answers

Sending Outgoing Emails from Unix Server

the server i have here is a Ubuntu server. it has nagios on it. after setting up nagios and having it work as it should, i realized at the very end of all my work that obviously nagios will also need to send out email alerts to a set of email addresses that it has in its database. my problem... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. Solaris

Sending email to Lotus Notes

Hello, I have tired the commands like below to send a email with an attachment to IBM lotus notes uuencode filename filename | Mail -s "subject" addr uuencode filename filename | mailx -s "subject" addr uuencode filename filename | sendmail addr All of three command work. But I can... (0 Replies)
Discussion started by: babykings
0 Replies

4. Shell Programming and Scripting

Sending mutiple files thru email to lotus notes

Hi All, I am currently using the following script to send the single file to one/more email addresses. I need to send mutilple files at same time, are there anyway I could modify the script or write new one to accomplish the same. Script *************** #!/bin/ksh # Author: Manish... (4 Replies)
Discussion started by: lapisguy
4 Replies

5. UNIX for Advanced & Expert Users

Lotus Notes on Solaris

Does anyone know if you can run Notes on a SunBlade? This is the last program I need to completely get away from all MS boxes, if I can run my Notes on my Blade I won't need this ratty MS box! Thanks! JP (4 Replies)
Discussion started by: jpeery
4 Replies

6. UNIX for Advanced & Expert Users

send mail to a UNIX machine to my Lotus Notes

Hi, I'am new in system administration, and I would like to send file from my UNIX machine running on Aix 4.3.3 to the Lotus Notes V5 mail of my colleagues . So I heard about the sendmail command, but I don't know excatly how to use it for send my files . Please if you have a idea, help me !!! (1 Reply)
Discussion started by: hugo
1 Replies

7. UNIX for Dummies Questions & Answers

Sending Emails to a unix process

Hi , I need to have a unix process which is setup to read all incoming mail for some user and process the same. How tough it is to code the same.Is there any way that we can download some shell scripts for the same from some internet site Kindly help. (2 Replies)
Discussion started by: xsriniva
2 Replies

8. UNIX for Dummies Questions & Answers

unix to Lotus Notes email attachment

Hi all, I have searched the FAQ and find that there is some threads related to this subject. But can you please give an examples on how to send attachment to Lotus Notes email through UNIX? Since i have gone through the RFC and the URL. But i still have no idea on it. Please give some... (7 Replies)
Discussion started by: wilsonchan1000
7 Replies

9. UNIX for Dummies Questions & Answers

unix to Lotus Notes email attachment

We have been trying to get an email from unix to Lotus Notes to work. We finally got it to work with the following code: cat filename | uuencode filename | mailx -s "subject title" email address Now our problem is that Lotus Notes doesn't show the paper clip icon, indicating an attachment... (3 Replies)
Discussion started by: cowgilm
3 Replies
Login or Register to Ask a Question