[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] problem with script for unix



Giovanni Fuortes <gfuortes@digitalgate.it> writes:
}hello
}I have a problem with script that is developed for Unix platform and
}include a command for sendmail (i think a default SMTP Server on unix
}server)

Yes, well known as a major security hole.

}this return this error
}
}# syntax error, next 2 tokens "send_mail("
}
}how can I resolve this problem? I have read of a MAcSMTP.pl.Is it a solution?
}Where can I find it?

Use Net::SMTP, part of Graham Barr's libnet package.
<ftp://mors.gsfc.nasa.gov/pub/MacPerl/Scripts/libnet-1.05_02.sit.hqx>

You might have to rewrite your script to include the headers that the
script's author assumed that sendmail would "helpfully" add.  It's not that
difficult.  Or you can use Mail::Internet in Graham Barr's MailTools:

<ftp://mors.gsfc.nasa.gov/pub/MacPerl/Scripts/MailTools-1.09.sit.hqx>

which does some header writing for you, but you'll still need Net::SMTP to
actually send the mail.  There was an article on how to use MailTools in
one of the early "Perl Journal" issues, if you have them available.  The
article is not online, but the code used in the article should be available
at <http://www.tpj.com/>

}
}sorry for my english, but I'm italian.
}
}TIA
}Giovanni Fuortes
}
}--------------
}Giovanni Fuortes
}http://www.alfanet.it
}mailto://gfuortes@alfanet.it
}voice://+39-6-5924665
}
}
}
}***** Want to unsubscribe from this list?
}***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch


---
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693, Greenbelt, MD 20771
schinder@pjstoaster.pg.md.us



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch