modified sendemail msg["from"], add 2 api in stockcountsbackend.py