mayfair Posted September 18, 2009 Share Posted September 18, 2009 Hello Guys Im at the final stages of an online ordering system and have to send the details of the order to the database software that our company uses - Goldmine. This is done via a web import process that picks up emails sent to a certain address with the required fields and values in. Now the problem is: The version of Goldmine we use is an absolute dinosaur and uses loads of symbols that are special or reserved characters in many programming languages in particular, the 'to' address for all web-import emails have to follow an exact syntax - {$GM-WEBIMPORT$} <[email protected]> - and that's hard-coded into the program. When I try and send to this address using PHP's mail() function, I get a "550 delivery is not allowed to this address" error; which im assuming is being caused because PHP is looking for a variable called $GM-WEBIMPORT or something. I've tried escaping all the symbols using their ASCII equivalent and splitting them up into strings etc, but I still can't get it to work. Our Goldmine 'Technical Contact' was just as puzzled on the phone and actually said "hmm well im sure there is a workaround because lots of our customers must import using PHP"! My Plan B was to come on here and see if you guys have any suggestions! Link to comment https://forums.phpfreaks.com/topic/174692-escaping-special-characters-in-email-address/ Share on other sites More sharing options...
Bricktop Posted September 18, 2009 Share Posted September 18, 2009 Hi mayfair, Have you tried just escaping the dollar symbols? i.e. {\$GM-WEBIMPORT\$} Hope this helps. Link to comment https://forums.phpfreaks.com/topic/174692-escaping-special-characters-in-email-address/#findComment-920659 Share on other sites More sharing options...
mayfair Posted September 18, 2009 Author Share Posted September 18, 2009 Hi Bricktop Yes, if I try commenting out the $ symbols it literally prints {\$GM-WEBIMPORT\$}. The entire string looks basically like: $to = "{$GM-WEBIMPORT$} <[email protected]>"; Link to comment https://forums.phpfreaks.com/topic/174692-escaping-special-characters-in-email-address/#findComment-920674 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.