Question

K

Kobe Clinton

I would like to know if there is a perl module that would actually
help me send gif, gpeg files(like company logos) through Perl.
I am able to use net::smtp to generate mails containg text
information, however I would like to add company logo in every mail I
send.
Please let me know

Thanks
 
G

Gregory Toomey

It was a dark and stormy night, and Kobe Clinton managed to scribble:
I would like to know if there is a perl module that would actually
help me send gif, gpeg files(like company logos) through Perl.
I am able to use net::smtp to generate mails containg text
information, however I would like to add company logo in every mail I
send.
Please let me know

Thanks

Didn't you trust the previous answer?

Here is a MIME:Lite example for sending HTML which may solve your problem. Also have a look at the doco for attaching a file, in your case a gif file.


#!/usr/bin/perl
use strict;

require MIME::Lite;
require MIME::Lite::HTML;


my $msg;
$msg = MIME::Lite->new(
To =>'(e-mail address removed)',
From =>'(e-mail address removed)',
Subject =>'HTML with in-line images!',
Type =>'multipart/related'
);
$msg->attach(Type => 'text/html',
Data => qq{ <body>
Here's <i>my</i> image:
<img src="http://asdasd.com.au/images/asdasd.gif">
</body> }
);
$msg->send;
 
J

James Willmore

On 26 Oct 2003 19:45:42 -0800
I would like to know if there is a perl module that would actually
help me send gif, gpeg files(like company logos) through Perl.
I am able to use net::smtp to generate mails containg text
information, however I would like to add company logo in every mail
I send.
Please let me know

Hummm ... I'm thinking you _may_ have read this before, but ....

MIME::Lite. MIME::Lite::HTML.

To _create_ images, you coulde use GD.

You _could_ also use Net::SMTP or other email modules, but it's, IMHO,
a royal pain.

HTH

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
As long as the answer is right, who cares if the question is
<wrong?
 
K

Kobe Clinton

Thanks for helping me out on the module thing. I am actually working
on it...

By the way,,, I don't even know how this message shot up twice on the
board. I am using Google groups to post messages as against the
Outlook express that I have been using until a while ago. I think that
could be the problem.

Thanks again
 
B

Ben Morrow

By the way,,, I don't even know how this message shot up twice on the
board. I am using Google groups to post messages as against the
Outlook express that I have been using until a while ago. I think that
could be the problem.

This is not a flame, rather it is a small piece of helpful advice.

This is not a 'board', it is a newsgroup.
Don't top-post. Put your replies at the bottom, after a suitably
trimmed and attributed quote.

Many people will already have killfiled you for those mistakes :(.

Ben
 
K

Kobe Clinton

Silly you , Ben Morrow. Teach your dad how to f**k.

O O
)|(
| ----> This is why you are born
0 0 ---> Your dad balls
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top