Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: MAIL::Sendmail Problem

by bilfurd (Hermit)
on Nov 07, 2003 at 21:08 UTC ( [id://305446]=note: print w/replies, xml ) Need Help??


in reply to Re: MAIL::Sendmail Problem
in thread MAIL::Sendmail Problem - Updated

Thanks for your input, Paulster2

As far as putting the URL in a variable, the message text changes a lot from project to project, and we use several different URLs. Usually, I get the message text from Big Boss or another project leader via e-mail. A little cut-and-paste with the message text, tweak the database calls, and fire.

Hmmm... I did this code a few years ago using examples and did not use strict. I am going to fix that now, then perform a suitable act of contrition so I never forget to use strict again.

Replies are listed 'Best First'.
Re: Re: Re: MAIL::Sendmail Problem
by menolly (Hermit) on Nov 07, 2003 at 21:58 UTC
    Sounds like a good place to use a heredoc.
      It's a great place to use heredoc.

      (probably why I never thought of it...)

Re: Re: Re: MAIL::Sendmail Problem
by Paulster2 (Priest) on Nov 08, 2003 at 18:15 UTC

    You could also put the entire message in a flat file or something, then read it into a generic sending script. This would make it real easy to change everything. Again it's a cut and paste operation, but your PERL code wouldn't have to change every time that the boss says send.

    Paulster2

    Not a sermon, just a thought!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found