You shouldn't need to use a macro to activate Smartbuff. You just need to bind a key to it in your WoW menu.
I have the Backspace key set on all 5 of my toons, and it automatically cycles through the needed buffs, or just says "nothing to do" if there are no other buffs to cast.

It sounds like you might have another mod that's conflicting with Smartbuff.