Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Email Recipients from CSV

Links for php scripts

Moderators: macek, egami, gesf

Email Recipients from CSV

Postby Hydropeptide » Wed Feb 01, 2012 10:31 am

I have a bunch of Forms I am creating with Google's new form creator, and publishing the CSV data files to the web for step one of our fully automated email system.


Random people every week fill out a certain form, and I want these emails saved into a CSV in say column 2, and then email-script.php file is a script containing my "weekly notification email" and in the recipient area it has a link to column 2 of my online published CSV.
Hydropeptide
New php-forum User
New php-forum User
 
Posts: 7
Joined: Wed Dec 21, 2011 10:07 am

Re: Email Recipients from CSV

Postby Hydropeptide » Wed Feb 01, 2012 10:42 am

I feel like it should be a simple code. Such as if I have this as my automated email:
<?php
$to = "CUSTOM_RECIPIENT";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>

CUSTOM_RECIPIENT = <src="google_csv_file_address" row="2" column="C" value=",">
Hydropeptide
New php-forum User
New php-forum User
 
Posts: 7
Joined: Wed Dec 21, 2011 10:07 am


Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron