Forums

send unique id in mail

carionpiet 26 Jun, 2011
Hi,

I've just made my form and everything works fine. All data is saved in the DB.
Now I want to mail the data, so I made my email template.

Is it possible to send the unique ID from the data base in the mail.
GreyHead 27 Jun, 2011
Hi carionpiet,

Which version of ChronoForms are you using*?

This is a question that has been discussed here many times before. It's possible in CFv3.2 but the work-flow makes it a little tricky as you have to delay the email until after the DB Connection.

The 'better' solution is to assing a unique random string identifier to the new transaction before either the Email is sent or the Db Connection is made. That way you can use the string value easily in both places. The random string is also more secure as it make it harder for users to 'guess' other values that are likely to be in use.

Bob

*You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomal 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla 1.6.
carionpiet 27 Jun, 2011
Hi GreyHead,
thanks for replying.

I'm using v3.2
I don't need a random number.

The first to subscribe has number 00000001
The second 00000002
The third 00000003
...
The tenth 00000010
.....
(Is it possible to add the 0000000?)
GreyHead 27 Jun, 2011
Hi carionpiet,

If you search here on cf_id you'll find several threads on getting the record id from the DB Connection and using that as a serial number.

Bob
This topic is locked and no more replies can be posted.