PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 16th, 2002, 07:56 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Multiple email recipients

Does anyone know how I can get a hp mailto to go to multiple recipients?
<input type="hidden" name="mailto" value="notsure@itwontwork2multiple.com">
Thanks for your help in advanced.

-phox

Reply With Quote
  #2  
Old July 16th, 2002, 08:23 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to EvilivE
RE: Multiple email recipients

What is a "hp"?

Do you wanna do this using php mail() or thru a link on a page?

Reply With Quote
  #3  
Old July 16th, 2002, 09:39 AM
greggory greggory is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reims, France
Posts: 82 greggory User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Multiple email recipients

Most of the time, addresses mut be comma-separated

mailto="p1@srv1.com,p2@srv2.com"

Reply With Quote
  #4  
Old July 17th, 2002, 06:32 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: Multiple email recipients

<?php

$mailto"1@server.com,2@server.com,3@server.com";

$mailto = explode(",", $mailto);
//mailto is now an array

foreach($mailto as $email)
{
mail();//mail fucntion here
}


that should do what you want

Reply With Quote
  #5  
Old July 17th, 2002, 07:34 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Multiple email recipients

arrays make me shiver inside with sweet goodness

Reply With Quote
  #6  
Old July 17th, 2002, 09:19 AM
greggory greggory is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reims, France
Posts: 82 greggory User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Multiple email recipients

Php mail() func accepts multiple addresses, so no foreach is needed:
php Code:
Original - php Code
  1.  
  2. <?php
  3. $mailto="1@server.com,2@server.com,3@server.com";
  4.  
  5. mail( $mailto, $subject, $message );
  6. ?>


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Multiple email recipients


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway