Re: [Toledoh] Web form to CSV via email?
Hi Tim,
You can do this with a little PHP code, and the csvExport plugin will make it a little easier. How about this code?
$csv = '';
$csv .= implode(', ', array_map('_csvExport_escapeAsCSV', array_keys($_REQUEST))) . "\n";
$csv .= implode(', ', array_map('_csvExport_escapeAsCSV', array_values($_REQUEST))) . "\n";
sendMessage(array(
'from' => "from@example.com",
'to' => "to@example.com",
'subject' => "Enter subject here, supports utf-8 content",
'text' => "Text message content",
'attachments' => array(
'form.csv' => $csv
)
));
Please let me know if you have any questions.
P.S. Yes, there are plans for a form builder plugin, but I don't think they're near-future plans just yet. Don't hold your breath for its release, but we'll welcome any ideas you may have on such a plugin! :)
All the best,
Chris