Get real close. U-32 commanded by Hans Jenish sank a Dutch ship. He went closer at periscope depth to try and read its name before it sank. However the sun was shining directly into the periscope so he misjudged the distance and rammed it. Thankfully for them the bow was damaged but not the torpedo tubes. Not that I'm suggesting ramming is an option