I'm running an automated script off of the server, and for security reasons the automation program does not have permissions to write to a specific server.
Right now I pull a bunch of data from a database and then save it into a CSV on the host machine, and then the program emails that file and deletes it.
Well this won't work on the server since it does not and will not have permissions. Is there a straightforward way to have all this data saved to a string for example, and email it as a csv attachment so that it never has to write to the server?