in reply to No mail in the SMTP inbox

Perhaps when you said:

$smtp->recipient("user2");

You really meant:

$smtp->recipient($ENV{"user2"});

As that seems to be what you did with "user1"?

bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.