in reply to send mail cgi

Stop using CGI.pm, (see also CGI::Alternatives, and your previous post). You have use MIME::Lite but don't actually use it, and try printing to sendmail. It looks more like you've copied/pasted some old code found online rather than taken the time to read the documentation for the modules you've included here. Tutorials->Debugging and Optimization->Basic debugging checklist.

Replies are listed 'Best First'.
Re^2: send mail cgi
by plvicente (Novice) on May 06, 2021 at 18:12 UTC

    I know. I need help only that.

        Thanks. This is new to me. All perl for apache or nginx. I was used to use on administration, small tasks. I want to use Mojolicious to websites. This was copied to try to have an email sender on the company. I need to improve more.