Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Sending mail via perl including inline images to gmail/yahoo

by zentara (Archbishop)
on Oct 07, 2011 at 16:16 UTC ( #930210=note: print w/replies, xml ) Need Help??


in reply to Sending mail via perl including inline images to gmail/yahoo

I tested your code, and it "seemed" to work with Claws-mail. I did have to add base64 to your attachment list options. The image displayed inline, but it didn't have the cid:...... text identifier box above it, it acted like a regular attachment.
$msg->attach(Type => 'image/jpeg', Id => 'twitter-white.jpg', Path => 'twitter-white.jpg', Encoding => 'base64', );

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930210]
help
Chatterbox?
[choroba]: Perl to the rescue!
[Corion]: hippo: At least for the German translation, the wordplay is translated as well
[Discipulus]: always! but if i can ask choroba why you always use the inverted (to me) form 1 == $.?
[choroba]: To avoid accidental overwriting of the variable in if ($x = 3)
[karlgoethebier]: Corion: Auch in hessisch? Mer wasses net.
[Corion]: Hmm - I'm not sure, I haven't read the mundart/slang translations ;)
[Eily]: $F[1] =~ s/^0//r could be written as (0+$F[1]). It's less explicit though

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-05-24 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?