Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1110267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found