Sponsored Content
Full Discussion: Sendmail Png Attachments
Top Forums Shell Programming and Scripting Sendmail Png Attachments Post 302832073 by posner on Friday 12th of July 2013 04:21:36 PM
Old 07-12-2013
Thanks Corona688 it worked

Code:
echo "--GvXjxJ+pjyke8COw"
echo "Content-Type: image/png"
echo "Content-Disposition: attachment; filename=\"graph_file.png\""
echo "Content-Transfer-Encoding: base64"
echo ""
openssl base64 < graph_file.png


I can live with the attachment but is it possible that we can include the contents in the mail body
This User Gave Thanks to posner For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sendmail attachments

Dear all, I've been working with AIX for, um, 15 years now and I have read all I can about the above, but I am stuck. Everything seems to point to using sendmail on the command line to embed a uuencoded attatchment will not work. Using something like "(cat plain.txt;uuencode attach.file... (4 Replies)
Discussion started by: rbatte1
4 Replies

2. Shell Programming and Scripting

sendmail with attachments

Hi, I got the following script from Ygor on this site: #!/usr/bin/ksh export MAILTO="email_address" export CONTENT="/export/home/aisdba/email_body.html" export SUBJECT="subject of email" ( echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo... (9 Replies)
Discussion started by: suthera
9 Replies

3. Shell Programming and Scripting

makefile to convert .jpeg to .png thumnails

Hello! I'm desperately trying to write a makefile that converts and scales jpeg files to png files in subdirectories I want to use netpbm, so I just need the commands: anytopnm pnmscale pnmtopng For various reasons i want to use a makefile. This is the first time i use the make tool... (1 Reply)
Discussion started by: henningbaer
1 Replies

4. Programming

Converting XImage to PNG

i was able to make a connection to X server and get a screen shot using XGetImage, now, im unable to save this XImage to any good format like PNG, i found a code that saves it to bitmap, but the resulted bitmap file is massive, is there anyway i can save this XImage to PNG directly? thanks; (7 Replies)
Discussion started by: JonhyM
7 Replies

5. Shell Programming and Scripting

Loop through directory convert jpg to png

Hi guys. I will be frequently needing to convert .jpg files to 183x183 .png thumbnails. I can't quite seem to wrap my head around how to make a for loop to do this. With the help of my friend (who may have mislead me, I'm quite confused) I've got this. This is bash the command is: pngify... (3 Replies)
Discussion started by: Drayol
3 Replies

6. Shell Programming and Scripting

Sendmail Script: Gmail cannot find attachments

Hi. I am using a script on HP-UX to send emails that include a Pdf attachment to clients. The scipt makes use of sendmail. The scripts works for everything except gmail. When I go on gmail via my Web Browser, I can see the message with the attachment, but if I try to view or download the... (2 Replies)
Discussion started by: Wahooka
2 Replies

7. Shell Programming and Scripting

Sendmail gz Attachments

Hi All, I have a problem again with sendmail content type . I am trying to attach the gz file to the html email but couldnt figure out even after extensive google. Here is my code. ( echo "From: $FROM" echo "To: $MAILTO" echo... (3 Replies)
Discussion started by: posner
3 Replies

8. Shell Programming and Scripting

Mailing multiple PNG attachments using sendmail

Need assistance in using the below script and having multiple png file attachments in the same script . Your inputs are appreciated. I dont have uuencode , I use either mailx, sendmail, mpack . ( echo "to: samplemail@somewhere.com" echo "from: samplemail@elsewhere.com" echo "subject:... (2 Replies)
Discussion started by: ajayram_arya
2 Replies

9. Shell Programming and Scripting

Sendmail - Attachments & Subjects

Hi All, Not been around in a while. However I have been all over tinternet (google) for days looking for a solution. Where I work has decided to use Sendmail on our Linux and Unix estate for sending emails via scripts. So I am hoping to eventually get a working solution for Sendmail and not... (3 Replies)
Discussion started by: dakelly
3 Replies
IMAGEFLIP(3)								 1							      IMAGEFLIP(3)

imageflip - Flips an image using a given mode

SYNOPSIS
bool imageflip (resource $image, int $mode) DESCRIPTION
Flips the $image image using the given $mode. PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $mode - Flip mode, this can be one of the IMG_FLIP_* constants: +--------------------+---------------------------------------------------+ | Constant | | | | | | | Meaning | | | | +--------------------+---------------------------------------------------+ | | | |IMG_FLIP_HORIZONTAL | | | | | | | Flips the image horizontally. | | | | | | | | IMG_FLIP_VERTICAL | | | | | | | Flips the image vertically. | | | | | | | | IMG_FLIP_BOTH | | | | | | | Flips the image both horizontally and verti- | | | cally. | | | | +--------------------+---------------------------------------------------+ RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Flips an image vertically This example uses the IMG_FLIP_VERTICAL constant. <?php // File $filename = 'phplogo.png'; // Content type header('Content-type: image/png'); // Load $im = imagecreatefrompng($filename); // Flip it vertically imageflip($im, IMG_FLIP_VERTICAL); // Output imagejpeg($im); imagedestroy($im); ?> The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example: Vertically flipped image Example #2 Flips the image horizontally This example uses the IMG_FLIP_HORIZONTAL constant. <?php // File $filename = 'phplogo.png'; // Content type header('Content-type: image/png'); // Load $im = imagecreatefrompng($filename); // Flip it horizontally imageflip($im, IMG_FLIP_HORIZONTAL); // Output imagejpeg($im); imagedestroy($im); ?> The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example: Horizontally flipped image NOTES
Note This function is only available if PHP is compiled with the bundled version of the GD library. PHP Documentation Group IMAGEFLIP(3)
All times are GMT -4. The time now is 10:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy