Why should your script run well, if you are using sample data like:
fromaddr = "fromaddr"
toaddr = "toaddr"
If you need more help, you should post your code between code tags, see BBCODE
fromaddr = "fromaddr"
toaddr = "toaddr"
If you need more help, you should post your code between code tags, see BBCODE