Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Sendmail Help!

by imp (Priest)
on Dec 07, 2006 at 14:45 UTC ( #588338=note: print w/ replies, xml ) Need Help??

in reply to Sendmail Help!

I would recommend using a module for sending mail, even for cases as simple as this. My most recent experience is with MIME::Lite, which is quite good.

You should assert that the $name field does not contain any newlines or special characters, otherwise spammers will use that field to embed another mail. A script I wrote early in my career had that problem, and it wasn't long before it was exploited.

I also recommend sending mail via SMTP instead of through a local executable, as it will allow you more flexibility and portability. The sendmail implementation of the sendmail command could have different options than the postfix implementation, or even other sendmail versions.

Comment on Re: Sendmail Help!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2016-02-07 15:34 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (254 votes), past polls