carrierGateways.getAddress(number, carrierName, [mms])
- return the
email address for the given number and carrier.
number
must be a 10-digit (US) phone number. All non-numeric digits,
and a leading US country-code is stripped out.
carrierName
should be a name as listed in carrier-addresses.json
.
mms
- if truthy, and the carrier has a separate address for mms
messages, use that address instead.
Example:
var carrierGateways = require("carrier-gateways");
// Look up an address.
carrierGateways.getAddress("801-234-5678", "Verizon");
// returns 8012345678@vztext.com