Opera versions 6 and earlier do not support Outgoing Authentication.
Go to Mail -> Manage accounts
Select the account you need SMTP authentication for and click the "Edit" button.
Select the "Servers" tab in the "Account properties" dialog box.
Enter your username and password under the "Outgoing SMTP server".