python email troubleshooting

changed the way it gets the smtp info