Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: perl win32::OLE outlook append the email subject to end of each line of the email body.

by vkon (Curate)
on Dec 13, 2014 at 11:58 UTC ( #1110267=note: print w/replies, xml ) Need Help??


in reply to perl win32::OLE outlook append the email subject to end of each line of the email body.

remove this line
my @name = split(/ /, $msg->{Subject});
it spoils $1 that is used a line after;
yet to append something to each line of body you need smth like this
print $email_fh $msg->{Body}=~s/^/foobar $name /rgm;
  • Comment on Re: perl win32::OLE outlook append the email subject to end of each line of the email body.
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1110267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2020-09-24 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (134 votes). Check out past polls.

    Notices?