• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: ACYMAILER 9 integration with latest RS FORM

ACYMAILER 9 integration with latest RS FORM 1 year 16 hours ago #43348

  • bpaul
  • bpaul's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
Recently I've updated both RS FORM and ACY MAILING. I noticed one of my forms that was using the ACY MAILING - RS FORM integration to jump submissions into Acy Mailing stopped recently. I am using the PHP code after submission and I can get the email address to carry over to ACY, but it's not subscribing to a list. FYI, my LIST ID is 5.

Here is what I'm using that is called AFTER the form has been processed. What am I missing:

include_once(JPATH_ADMINISTRATOR . '/components/com_acym/helpers/helper.php');
$userClass = acym_get('class.user');

// Get form data
$postData = $_REQUEST;

$name = strip_tags($postData); // change value to field on form containing subscribers name.
$email = strip_tags($postData); // change value to field on form containing email address.

$list[] = '5'; // Hardcode the list # here rather than in field in form.



// check if email address already exists
$myUser = $userClass->getOneByEmail($email);
if (empty($myUser))
{
$myUser = new stdClass();
}

//Add or Update the User to ACYMailing
$myUser->email = $email;
$myUser->name = $name;
$myUser->id = $userClass->save($myUser);

// Attempt subscription
$userClass->subscribe($myUser->id, $lists);
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!