Hi ,

Thank you for the feedback.
I need the queue id so I can later track the mail on our logs (in case of 
delivery problems).
I am not sure if all smtp server return it on the response. Testing it via 
telnet with postfix I get it

220 <ommitted> ESMTP Postfix (Ubuntu)
ehlo <ommitted>
250-<ommitted>
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<ommitted>
250 2.1.0 Ok
rcpt to:<ommitted>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
bla
.
250 2.0.0 Ok: queued as AE804D63A22

-----Original Message-----
From: Felix Schumacher [mailto:[email protected]] 
Sent: Thursday, 8 April 2021 13:44
To: [email protected]
Subject: Re: SMTP Handler - get queue id


Am 07.04.21 um 15:38 schrieb Oren Nudelman:
> Hi ,
>
> I am trying to get back the queue id in the SMTP response when sending email 
> using SMTP handler.
> I can see it in the logs when enabling debug but could not find any way to 
> retrieve it during execution.

With "can see it in the logs", you probably the logs from the Java mail api. I 
don't think that there is (currently) an easy way to parse those or to get at 
the queue id by other means from within JMeter.

Why do you want to get the queue id?

If you really need it, you could open an enhancement issue on the bug tracker. 
After dabbling a bit, I think we could parse the queue-id from the Transport 
instance in the sendmailcommand by issuing getLastServerResponse on it. But, it 
is unclear to me, whether the queue id is always part of the response and the 
call chain in JMeter doesn't allow the addition of that information in a 
trivial way (at least not at first glance).

Felix 

>
> Anyone?
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to