Re: Adding *another* person to an e-mail *to:* address

From: Date: Mon, 19 Nov 2001 22:42:03 +0000
Subject: Re: Adding *another* person to an e-mail *to:* address
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-10512@lists.php.net to get a copy of this message
Ross, As much I would like to say it works...no dice. I tried: $to.=";theotheradddress@a.com"; (semicolon) $to.=",theotheraddress@a.com"; (comma) $to.="theotheraddress@a.com".","; ended the first e-mail string with quotes then added a dot then put a comma in between quotes. Then ended it with a semicolon. Any other suggestions? If you have a script with two e-mail addresses which can be received by two different people please post the complete script. Many thanks, Tony Ritter ................................................... ----- Original Message ----- From: Ross Fleming <r.fleming@totalise.co.uk> To: Anthony Ritter <tony@gonefishingguideservice.com>; PHP Windows mailing list <php-windows@lists.php.net> Sent: Monday, November 19, 2001 1:25 PM Subject: RE: [PHP-WIN] Adding *another* person to an e-mail *to:* address > stick a comma or a semicolon in between (can't remember which) > > $to.="; mailto:theotheraddress@a.com; ................................. Ross Fleming <r.fleming@totalise.co.uk> wrote in message news:MABBLJAPGGBPMIPHMAGBCEPACDAA.r.fleming@totalise.co.uk... > stick a comma or a semicolon in between (can't remember which) > > $to.="; mailto:theotheraddress@a.com; .................................... > -----Original Message----- > From: Anthony Ritter [mailto:tony@gonefishingguideservice.com] > Sent: 19 November 2001 18:59 > To: php-windows@lists.php.net > Subject: [PHP-WIN] Adding *another* person to an e-mail *to:* address > > > Hi, > Thanks to all that helped me out yesterday. > > I'm using PHP with Apache on a MS Windows 98 box. > > I would like to include a cc to another e-mail adresss when sending an > e-mail. > > In addition I would like to *receive* and *also have the cc person receive* > this e-mail as well. > > Right now, I am receiving an e-mail but not the other person using the > following script. > > Using the variable and concatating the string to read: > > $to.="addanother_emailaddress@home.net"; > > does not seem to work. > > How do I go about configuring this script so that both of us - the *to* > person and the *cc* person can recieve the same e-mail? > > The script: > ................................ > > > <? > $msg="Email sent from WWW site"; > $msg.="Sender's name:\t$sender_name\n"; > $msg.="Sender's email address:\t$sender_email\n"; > $msg.="Message:\t$message\n\n"; > $to="tony@gonefishingguideservice.com"; > $other_email = "linda@worksbyhand.com"; > $subject="Web Site Feedback"; > $mailheaders="From: My Website<>\n"; > $mailheaders.="Cc: $other_email\n"; > $mailheaders.="Reply to: $sender_email\n"; > mail($to,$subject,$msg,$mailheaders); > ?> > .......................... > > In the above script: > I received an e-mail but *not* the cc person - Linda. > > However, when I hit "reply" to that e-mail, both: > > tony@gonefishingguideservice.com > and > linda@worksbyhand.com > > showed up with Linda's as the cc. > > O.K. That's half the riddle. > > I'm trying to have both myself *and Linda* receive > an e-mail...not just me. > > So I tried the following script by concatating the string > $to > ................................... > > > <? > $msg="Email sent from WWW site"; > $msg.="Sender's name:\t$sender_name\n"; > $msg.="Sender's email address:\t$sender_email\n"; > $msg.="Message:\t$message\n\n"; > mailto:$to="tony@gonefishingguideservice.com"; > $to.="linda@worksbyhand.com"; > $other_email = "linda@worksbyhand.com"; > $subject="Web Site Feedback"; > $mailheaders="From: My Website<>\n"; > $mailheaders.="Cc: $other_email\n"; > $mailheaders.="Reply to: $sender_email\n"; > mail($to,$subject,$msg,$mailheaders); > ?> > > <HTML> > <HEAD< > <TITLE> Simple Feedback Form </TITLE> > </HEAD> > <BODY> > <H1> The following email has been sent: </H1> > <P><strong>Your Name:</strong><br> > <? echo "$sender_name"; ?> > <P><strong>Your email address:</strong><br> > <? echo "$sender_email"; ?> > <P><strong>Message: </strong> <br> > <? echo "$message"; ?> > </BODY> > </HTML> > ................................................. > > And after using *that* script neither of us receive an e-mail except that it > gets bounced back as: > > tony@gonefishingguideservice.comlinda > > So, it seems that somewhere the string in > > $to > > is getting fouled up. > > Any ideas? > > Many thanks for your time and help. > > Kindest regards, > Tony Ritter > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.windows (#10512) next »