jetsettt Posted March 14, 2008 Share Posted March 14, 2008 Hello, Not sure if anyone can help with this as its a problem with PHP code created by Adobe Developer Toolbox extension for Dreamweaver. I am trying to modify the 'Send email to recipients from recordset' code function that is inserted by the tool. The problem is that I don't want to send to recipients email. I want to retrieve the members cell/mobile telephone number and then append the SMS message company's domain name to it to end up with a format such as [email protected] Here is the generated PHP code... //start Trigger_EmailRecordset_sms trigger //remove this line if you want to edit the code by hand function Trigger_EmailRecordset(&$tNG) { $rsemailObj = new tNG_EmailRecordset($tNG); $rsemailObj->setRecordset("members"); $rsemailObj->setFrom("[email protected]"); $rsemailObj->setTo("member_mobile_number"); $rsemailObj->setSubject("SMS"); //WriteContent method $rsemailObj->setContent("SMS / {message}"); $rsemailObj->setEncoding("ISO-8859-1"); $rsemailObj->setFormat("Text"); $rsemailObj->setImportance("Normal"); return $rsemailObj->Execute(); } //end Trigger_EmailRecordset_sms trigger The code above works as it should and passes the telephone number to the email server, but when I try to append the Domain to the telephone number and complete the email address then a problem occurs, NO data is then passed by the PHP mail function to the email server Generated code... $rsemailObj->setTo("member_mobile_number"); Domain added... $rsemailObj->setTo("member_mobile_number"."@smsmessagecompany.com"); The added code is ignored! and then NO number is passed either! I can't work out why the mod does not work. The mod does work if the 'send to single recipient' function is used. Can anyone help? Link to comment https://forums.phpfreaks.com/topic/96159-adobe-developer-toolbox-extension-for-dreamweaver-code-mod-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.