in reply to (OT) smtp problem

1. ++ for insight. It's not a perl question
2. Code and expectations/results/relevant logfiles may be useful
3. Are you familiar with google etc?
4. What mailserver/environment?

Once you have info for 4, you may use 3 to get a clue about where to send 2. ...and your question

And you may want to be ready to explain why you want to send mail using "(y)our company's smtp mail server" without also using your company's selected email client?