GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP syntax help , who can take a peek? (https://gfy.com/showthread.php?t=966174)

Juicy D. Links 04-30-2010 02:50 PM

PHP syntax help , who can take a peek?
 
$sms_email = "[email protected]"; // NOTE - replace with your cellphone's SMS email address

now i want to add another email addy what is the appropriate syntax?

Below good?


$sms_email = "[email protected]" "[email protected]"; // NOTE - replace with your cellphone's SMS email address

camgirlshide 04-30-2010 02:53 PM

$sms_email = "[email protected];[email protected] et";

Juicy D. Links 04-30-2010 02:55 PM

Quote:

Originally Posted by camgirlshide (Post 17091278)

thx man


-JDL

fris 04-30-2010 03:38 PM

Quote:

Originally Posted by camgirlshide (Post 17091278)

probably wont work like this.

mikke 04-30-2010 03:41 PM

Quote:

Originally Posted by camgirlshide (Post 17091278)

i think ; wont work, try , ...

FlexxAeon 04-30-2010 03:42 PM

trying to send "TO:" to both at the same time?

edit: if yeah, what they said above is proper email syntax use a comma

Juicy D. Links 04-30-2010 04:12 PM

Quote:

Originally Posted by mikke (Post 17091504)
i think ; wont work, try , ...

"; " wasnt working gonna try ","

Why 04-30-2010 05:46 PM

it really depends on what is sending the mail. but the comma should work.

GrouchyAdmin 04-30-2010 06:02 PM

If this is that hokey X-Cart addon, you should either run a loop yourself for the addresses, or call the function dependent for each.

Wifey's World A.M. 04-30-2010 06:17 PM

I don't know what you are trying to do, but you might want to put each sms email address as a value in an array and then loop through that array.

$smsArray = array("[email protected]", "[email protected]", "[email protected]");

foreach ($smsArray AS $value) {
*do something with $value;*
}

Wifey's World A.M. 04-30-2010 06:20 PM

...or

$sms_email = "[email protected]";
$sms_email .= "[email protected]";

return $sms_email;

Again, I don't know what you're trying to do.

k0nr4d 05-01-2010 12:55 AM

mikke got it. proper syntax is to use a comma, so
$sms_email = "[email protected], [email protected]";
or you can add another header to CC instead.

papill0n 05-01-2010 01:09 AM

Quote:

Originally Posted by Wifey's World A.M. (Post 17091980)
I don't know what you are trying to do, but you might want to put each sms email address as a value in an array and then loop through that array.

$smsArray = array("[email protected]", "[email protected]", "[email protected]");

foreach ($smsArray AS $value) {
*do something with $value;*
}


been a fan for years, your wife is the hotness man :thumbsup

Wifey's World A.M. 05-01-2010 02:46 AM

Quote:

Originally Posted by papill0n (Post 17092694)
been a fan for years, your wife is the hotness man :thumbsup

I'm their web developer and affiliate manager :thumbsup

LoveSandra 05-01-2010 03:19 AM

bump bump:)

Juicy D. Links 05-01-2010 04:27 AM

Quote:

Originally Posted by GrouchyAdmin (Post 17091941)
If this is that hokey X-Cart addon, you should either run a loop yourself for the addresses, or call the function dependent for each.

i initially made a new function "$sms_email2" and tested it and it worked then tried the ",
" and that worked also so all is good heheh

thx all for the help :)


All times are GMT -7. The time now is 01:20 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123