http://qs321.pair.com?node_id=1193118


in reply to Re^2: Mail::Sender connection failing under CGI
in thread Mail::Sender connection failing under CGI

If you're right, how to overcome this?

have the cgi add a job to a queue ... the mail actually gets sent by a cron job reading from the queue running under the user account and not the webserver account

Replies are listed 'Best First'.
Re^4: Mail::Sender connection failing under CGI
by Anonymous Monk on Jun 20, 2017 at 03:37 UTC
    Thanks for your reply. I was thinking myself about this kind of detour but found it a bit.. pathetic? Last week I was struggling with similar issue, namely LWP::UserAgent within CGI. No matter what, it is not possible to use them both when the server requires authentication over ssh. The only solutions found on internet suggest giving up on host authentication, or forcing ssh version, or using older ssl engine - all for nothing. I gave up in that case and started node.js. In this case it might be hard, since I have to use DBB::ODBC in the same script.. *Sigh*
      Well in that case you have to manage/configure your webserver to run your programmes with the required permissions