Text to multiple numbers

User 188640 Photo


Registered User
895 posts

Eric,

I have a site that I'm building with Wordpress which is what the customer wants. Will this work with multiply phone numbers?
http://www.coffeecup.com/forums/web-for … post240231

I have his forms set up (on his existing site) set up to email multiple numbers but when I saw your tip I thought that would be great for him if it would work to a couple of different numbers.

I haven't tried Form Builder in Wordpress yet so my question my be irrelevant.

Thanks,

Ernie
A Rose is Just a Weed in a Corn Patch!
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Do you want to set the numbers manually?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 188640 Photo


Registered User
895 posts

I just want to set it up with two or three phone numbers. My client is a fireman and he needs a backup or two so he doesn't miss any messages.

He has an art studio and tattoo shop and he wants to get notified when someone files out his web form. He likes for his wife to get a backup message and he wants me to have a copy just in case.

This is not a big rush as he has to wait until his 'He built it himself with a website builder' website account expires. I have until next June to get his site put together.

I have to go to Lowe's and get some four by fours for my new greenhouse. I'll check back later.
A Rose is Just a Weed in a Corn Patch!
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

You can use whats called an associative array and then loop through it.
$cellnumbers_list = array("4445555555"=> "messaging.sprintpcs.com", "3335556767"=> "txt.att.net");
foreach($cellnumbers_list as $cellnumber=>$carrier){
mail(".$cellnumber@$carrier.", "", "Thanks for filling out my form.\n Your phone number is ".$cellnumber."\n Your carrier is ".$carrier, "From: Your Name <yourname@yourdomain.com>\r\n");}
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.