I'm trying to setup yagmail with an external .yagmail file with credentials but when I run the code it returns
YagInvalidEmailAddress: Emailaddress "yagmail.register('my.username@gmail.com', 'my.password')" is not valid according to RFC 2822 standards
the .yagmail file is like this
yagmail.register('my.username@gmail.com', 'my.password')
Any suggestion?