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:
WebCatalog2 for NT Beta Request (1997)
groups and [ShowNext] (1997)
many-to-one problem (1998)
Blank Orders (2005)
Mozilla/4. and Browser Info.txt (1997)
WCS Newbie question (1997)
WebCatalog can't find database (1997)
plugin-acgi, different results (1997)
itools (2000)
Protect (1997)
[date format] w/in sendmail (1997)
[WebDNA] Send a print command to a thermal printer? (2012)
Problems reading files created by WC (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
List of WebDNA users - Show of Hands (2002)
Force a search at the default.tmpl page? (1997)
Using Cookie for client specific info? (1997)
emailer (1997)
UK credit card info follow-up (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)