surfking Posted May 9, 2004 Share Posted May 9, 2004 Hi, I am creating an OSC based site and I was wondering if you can use the email list feature without requiring someone to create an account? If this is possible please let me know, I didn't see any contributions. Thanks in advance! Joel McLaughlin http://www.behealthyfitness.com Link to comment Share on other sites More sharing options...
OnePhatWebyCat Posted May 15, 2004 Share Posted May 15, 2004 Keywords: email e-mail mail anyone everyone admin mail.php I will not be able to respond to you again vacation for a month. Anyway I was seeking a way to use the admin email to send mail from there to anyone not just others on the list, basically using the admin email for email. Any how I am not sure that was what you meant to or needed but if it was will provide what I did below it will be short and not complete but will work. I will assume you are on a windows system. I copied the admin/mail.php and renamed it mail_anyone.php placed it back into the folder I changed the following lines in that file. (THIS IS JUST A GUIDE VERSION MAY VARY this was Released Milestone2) <?php $customers = array(); $customers[] = array('id' => '', 'text' => TEXT_SELECT_CUSTOMER); $customers[] = array('id' => '***', 'text' => TEXT_ALL_CUSTOMERS); $customers[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_CUSTOMERS); $mail_query = tep_db_query("select customers_email_address, customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " order by customers_lastname"); while($customers_values = tep_db_fetch_array($mail_query)) { $customers[] = array('id' => $customers_values['customers_email_address'], 'text' => $customers_values['customers_lastname'] . ', ' . $customers_values['customers_firstname'] . ' (' . $customers_values['customers_email_address'] . ')'); } ?><tr><td class="main"><?php echo TEXT_CUSTOMER; ?></td><td><?php echo tep_draw_pull_down_menu('customers_email_address', $customers, (isset($HTTP_GET_VARS['customer']) ? $HTTP_GET_VARS['customer'] : ''));?> Was Changed To. <tr><td class="main"><?php echo TEXT_CUSTOMER; ?></td><td> <?php echo tep_draw_input_field('customers_email_address'); ?> Then I copied admin\includes\languages\english\mail.php and renamed it to mail_anyone.php and placed it back into the english folder the link to the file can be added in admin will not explain that but you can access the e-mailer from h t t p://yousitesname.c o m/admin/mail_anyone.php or depending if you moved the https in your admins Config above the regular http link so you remain in ssl while in admin h t t p s://yousitesname.c o m/admin/mail_anyone.php You can bookmark that page if you like. :!: first rule: Allways make a backup of a file before you change it. & All code is CASE Sensitive :!: second rule: Never copy and paist code unless you know it works. :!: third rule: If you do not know ask. :!: final rule: Have patience. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.