Re: Different Email recipients?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19910
interpreted = N
texte = >>Does anyone know of a way to have email forwarded to different people>>based on country?>>Say...a .au address will be sent to the Australia sales department and>>a .de german etc ?>>>You can find out the last two letters of the address using [CountChars] and>[GetChars]>Then check with [showif] or ask a database where to send the mail.You might try getting the last THREE characters, and check to see if the first of those is a dot. The reason for this is because all non-US addresses will have a dot in that position, but most US addresses do not -- so that's how you can tell most US from non-US addresses.But remember, some US addresses, the ones based on geographic location, also fall into the category of having the first of those last three characters a dot -- so you'll still need to include US in your two-letter country code database, along with all the other countries, if US addresses will be an issue here ... :)Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>>Does anyone know of a way to have email forwarded to different people>>based on country?>>Say...a .au address will be sent to the Australia sales department and>>a .de german etc ?>>>You can find out the last two letters of the address using
[countchars] and>
[getchars]>Then check with
[showif] or ask a database where to send the mail.You might try getting the last THREE characters, and check to see if the first of those is a dot. The reason for this is because all non-US addresses will have a dot in that position, but most US addresses do not -- so that's how you can tell most US from non-US addresses.But remember, some US addresses, the ones based on geographic location, also fall into the category of having the first of those last three characters a dot -- so you'll still need to include US in your two-letter country code database, along with all the other countries, if US addresses will be an issue here ... :)Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Attention all list readers (1997)
database paths/names, and a typo (1997)
Plugin or CGI or both (1997)
Color options - modified (1999)
Formatting dates stored in db (2003)
Multiple prices (1997)
WebCat-Typhoon-WebTen (1998)
Help name our technology! I found it (1997)
truncating email part II (1997)
Emailer (1997)
[WebDNA] An apache config file that works? (2013)
Make sure I understand this??? (1997)
authenticating a second user, the sequel (1997)
Reversed words (1997)
target=_blank and form variables (1997)
oops private message leaked into talk list (1997)
PCS Customer submissions ? (1997)
ups shipping based on weight (1999)
problems with 2 tags (1997)
Math inside [showif] (1998)