Skip Menu |

This queue is for tickets about the Net-Server-Mail CPAN distribution.

Report information
The Basics
Id: 122549
Status: resolved
Priority: 0/
Queue: Net-Server-Mail

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.23
Fixed in: (no value)



Subject: Access to HELO string in MAIL callback
In order to use the Mail::SPF::Query package I need access to both the sender's email address and the HELO string at the same time. As far as I can tell, I can't access the HELO string in the MAIL callback that I've assigned using $smtp->set_callback(MAIl => \&validate_sender); Is that possible to do?
Le Jeu 20 Jui 2017 08:42:38, NHORNE a écrit : Show quoted text
> In order to use the Mail::SPF::Query package I need access to both the > sender's email address and the HELO string at the same time. As far > as I can tell, I can't access the HELO string in the MAIL callback > that I've assigned using $smtp->set_callback(MAIl => > \&validate_sender); > > Is that possible to do?
Hello, sorry for this long delay... You can set $smtp->set_callback(HELO => \&sub1) to store HELO value somewhere, then use it in &validate_sender