openSUSE 12.3, KDE - send an email from within a script

I need to send an email from within a script, obviously without any user intervention. I have tried KMail but I cannot get it to work completely unattended.

Some friends have suggested other email clients but my ISPs email server requires smtp authentication which has presented a stumbling block :frowning:

I would be very grateful for any help or suggestions.

Cheers.