V18.0.0 SEGA is not using the smtp port declarations when sending emails as the variable isn't used anywhere.
It's a fairly obvious bug in the sellerdeck code but took me a while to work out what they're doing and where the problem was.
Selleredeck have a declaration for the smtp port but then don't use it anywhere.
Here's the code that doesn't work. Line 482 in "SmtpLibrary.pm
Whereas what does work is if you add in the Port declaration:
Tested and working with Sendgrid using $nPort = 2525; It send the emails and passes the network test.
I haven't bothered with the second port declaration but it looks like the same thing is happening there.
Mike
PS. If possible it would be great if the fix could also incorporate using a variable that is set in the network settings to define the port number being used. It would save anyone needing to set the smtp port from having to modify the scripts after every upgrade.
It's a fairly obvious bug in the sellerdeck code but took me a while to work out what they're doing and where the problem was.
Selleredeck have a declaration for the smtp port but then don't use it anywhere.
Here's the code that doesn't work. Line 482 in "SmtpLibrary.pm
Code:
my $smtp = Net::SMTP->new($smtp_host, Debug => $debug, Timeout => $nTimeout, Domain => PF_INET);
Code:
my $smtp = Net::SMTP->new($smtp_host, Debug => $debug, Timeout => $nTimeout, Domain => PF_INET, Port => $nPort);
I haven't bothered with the second port declaration but it looks like the same thing is happening there.
Mike
PS. If possible it would be great if the fix could also incorporate using a variable that is set in the network settings to define the port number being used. It would save anyone needing to set the smtp port from having to modify the scripts after every upgrade.
Comment