Spams in my Sent folder

Spams in my Sent folder

Hi Everyone,

I noticed today that there are a lot Spam emails in my sent folder. All of them are adult related. If it's in my sent folder, does it mean someone has login to my account and sent emails on my behalf? I've never given away my password to anyone. I've changed it today but how can I prevent it happen again?

Best regards
Al