I want to add a barcode to an email. Currently we use Eventsforce, which has a ticket layout creator. It adds the six digit personal ID written in the standard Code 39 barcode font. When this person attends the event, they will be scanned by our staff who have barcode scanners.

We have imported event attendees into Marketing Cloud from Eventsforce, Personal ID and all, and we would also like to send event attendees their tickets, with a barcode.

Is there any way of doing this, that anyone knows of?

1 Answer 1


You can do this with the BarCodeURL() AMPScript function:

<img style="width: 400px;" alt="WHEE" src='%%=BarCodeURL('WHEE','Code39', 400, 200, 0)=%%' width="400">


AMPScript Function List

  • Many thanks, was not aware of a barcode function in Ampscript.
    – TCassa
    Commented Nov 1, 2016 at 16:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .