Fixed missing 'from', and updated to use curl.