added array resource for subject & content, changes in curl