|
|
Sergey Kornilov admin 3/25/2010 |
|
You can check this article for inspiration: |
|
|
L
|
lordkain2 author 4/7/2010 |
|
You can check this article for inspiration: http://xlinesoft.com/phprunner/docs/send_email_to_email_addresses_from_user_table.htm If you need help with coding feel free to contact support team directly at http://support.xlinesoft.com
|
|
|
G
|
glazer 4/7/2010 |
|
Hi, I have this tables: "USERS_DATA" ID Savings Loans User_ID Date "Users" User_ID Name Pass Can I send an email to every user with their Savings and Loans data? Any idea how to do this (if is possible)? Thanks. PS. I probably hire to do the work, anyone interested?
|
|
|
L
|
lordkain2 author 4/8/2010 |
|
This what i do in one of my application: global $dal; $LoginDetails = $dal->Table("Login"); $rs = $LoginDetails->QueryAll(); while ($data = db_fetch_array($rs)) { $email=$data["Email"].", "; $from="mail@fred.com"; $msg= $values["Message"]; $subject=$values["Subject"]; $ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from)); if(!$ret["mailed"]) echo $ret["message"]." "; }
|
|
|
P
|
patricktrujillo 5/3/2010 |
|
I am trying to accomplish the same thing. Using "queryall()" will actually send an email to "all" the users within the email field under the table specified. But what if you want to send an email to one specific user? |
|
|
J
|
Jane 5/4/2010 |
|
Patrick, $rs = $tblUsers->Query("id = '".$values["FieldName"]."'","");
|
|
|
P
|
patricktrujillo 5/6/2010 |
|
Jane, |
|
|
P
|
patricktrujillo 5/10/2010 |
|
Jane, The code you provided is not working. The syntax and all that checks ok, but no email is being sent. Here is the full code I am using. global $dal; //select emails from Users table $tblUsers = $dal->Table("employees"); $rs = $tblUsers->Query("id = '".$values["email"]."'",""); while ($data = db_fetch_array($rs)) { $email=$values["email"].", "; $from="patrick@bhioffice.com"; $msg="Check what's hot this season"; $subject="Monthly newsletter"; $ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from)); if(!$ret["mailed"]) echo $ret["message"]." "; } I have users in the "employees" table that have a specific "id", along with that "id" they have their "email". Once an employee is entered into the db, that is fine. But when I go to add the "employeeinfo", and complete all the info required, it should email that specific employee that his/her info has been added. What do I have out of place here? bump bump |
|
|
|
Sergey Kornilov admin 5/10/2010 |
|
patricktrujillo, |
|