Sponsored Content
Top Forums UNIX for Dummies Questions & Answers unix to Lotus Notes email attachment Post 13351 by LivinFree on Wednesday 16th of January 2002 02:39:46 AM
Old 01-16-2002
You can use MIME.... You can use a simple, fudged up version, supplying your own headers, like in the script I supplied. It will send a PDF file to the user. Use it like follows:
mailmime.sh myfile.pdf recipient.address@place.com
Code:
#!/bin/sh

my_file="$1"
recip_adr="$2"

echo "\
Subject: File attached for your approval
MIME-Version: 1.0
Content-type: multipart/mixed; boundary="^A^A^A^A^A"
Content-Transfer-Encoding: 7bit

--^A^A^A^A^A
Content-Type: text/plain; charset=US-ASCII; name="BDY.TXT"
Content-Disposition: inline; filename="BDY.TXT"
Content-Transfer-Encoding: 7bit

Please review the attached file.

--^A^A^A^A^A
Content-Type: text/plain; charset=US-ASCII; name="attachment.txt"
Content-Disposition: attachment; filename="attachment.txt"
Content-Transfer-Encoding: 7bit

" > mailfile

cat ${my_file} >> mailfile
echo "
--^A^A^A^A^A--" >> mailfile

sendmail ${recip_adr} < mailfile

This trick is used by our admin here to send out automated text reports to various people. I modified it to be standalone, and it could be modified much more for your needs as well...

Hope this helps.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. UNIX for Dummies Questions & Answers

Encrypted Email to Lotus notes

I am using mailx command to send automated emails from the Unix to Lotus notes. Recently we got a requirement to send all emails as encrypted emails. I am not sure how I can encrypt an email using unix. Please help!! Thanks (3 Replies)
Discussion started by: Anamika
3 Replies

5. Shell Programming and Scripting

Reading from Lotus notes mail server

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 (0 Replies)
Discussion started by: misenkiser
0 Replies

6. 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

7. Shell Programming and Scripting

send mail attachment to lotus notes

Hi All, We have requirement to send lotus notes email attachment to mutiple users. Each user has a separate file name ,but the file name and mail id will be same please help urgent Thanks (2 Replies)
Discussion started by: gwrmk
2 Replies

8. 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

9. AIX

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... (3 Replies)
Discussion started by: neetutg
3 Replies

10. 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
GLFRAMEBUFFERTEXTURE(3G)					  [FIXME: manual]					  GLFRAMEBUFFERTEXTURE(3G)

NAME
glFramebufferTextureLayer - attach a single layer of a texture to a framebuffer C SPECIFICATION
void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); PARAMETERS
target Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. attachment Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. texture Specifies the texture object to attach to the framebuffer attachment point named by attachment. level Specifies the mipmap level of texture to attach. layer Specifies the layer of texture to attach. DESCRIPTION
glFramebufferTextureLayer operates like glFramebufferTexture(), except that only a single layer of the texture level, given by layer, is attached to the attachment point. If texture is not zero, layer must be greater than or equal to zero. texture must either be zero or the name of an existing three-dimensional texture, one- or two-dimensional array texture, or multisample array texture. ERRORS
GL_INVALID_ENUM is generated if target is not one of the accepted tokens. GL_INVALID_ENUM is generated if attachment is not one of the accepted tokens. GL_INVALID_VALUE is generated if texture is not zero or the name of an existing texture object. GL_INVALID_VALUE is generated if texture is not zero and layer is negative. GL_INVALID_OPERATION is generated if zero is bound to target. GL_INVALID_OPERATION is generated if texture is not zero or the name of an existing cube map texture. SEE ALSO
glGenFramebuffers(), glBindFramebuffer(), glGenRenderbuffers(), glFramebufferTexture(), glFramebufferTextureFace() COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. [FIXME: source] 05/30/2012 GLFRAMEBUFFERTEXTURE(3G)
All times are GMT -4. The time now is 04:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy