Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Import emailadresses, name, lastname to tokentable from xml

Import emailadresses, name, lastname to tokentable from xml 3 years 10 months ago #92015

  • adishardis
  • adishardis's Avatar
  • Offline
  • Premium Lime
  • Posts: 69
  • Karma: 0
I'm trying to set up a workflow where I daily get a xml file to our ftp with firstname, lastname, date and email.

Via php I want to import the emails not already in the tokentable.

and then via a cronjob activate sending mails withe "date" older than 3 days.

Has anybody done anything like this? Is it possible, is there a better way?

Any thought would be much appreciated!

Sinceraly
Adam
The administrator has disabled public write access.

Import emailadresses, name, lastname to tokentable from xml 3 years 10 months ago #92027

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9568
  • Thank you received: 1374
  • Karma: 390
adishardis wrote:
Is it possible, is there a better way?
With cronjob and PHP, all is possible. But talke time ;).

Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.

Import emailadresses, name, lastname to tokentable from xml 3 years 10 months ago #92035

  • adishardis
  • adishardis's Avatar
  • Offline
  • Premium Lime
  • Posts: 69
  • Karma: 0
Yea, that's what I thought. Me and my big mouth told my boss that I could get that done in a couple of weeks :D

Well I need to get started somewhere and I have an approximate idea of how to extract the data from the xml-file.

The next thing would be to create a token in php and add them to the array from the xml file.
Insert the array to lime_token_table.

Then via a cronjob schedule sending emails depending on the attribute "date".

Is there something I'm missing? What step do you think would take the longest to code?

Take care!

Adam
The administrator has disabled public write access.
Time to create page: 0.496 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form