Jump to content

Adobe Developer Toolbox extension for Dreamweaver code mod help


jetsettt

Recommended Posts

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 075343125544@smscompany.com

 

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("sms@mydomain.com");
  $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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.