2

I'm currently looking to send out an email using Postmaster when an entry expires. My entry will be assigned a expiration date, so im curious if I can use this variable in the "Post Date Specific" field. Currently the field states that you can put a dynamic date.

Will it work with the {parcel:expiration_date format="%d/%m/%Y-%g:%i:%s"}? If it does, its not working for me.. Maybe its my formatting?

1 Answer 1

1

Issue is definitely the formatting. I tested this locally and found that the format you used returns FALSE when it's passed to the strtotime() method. This because PHP cannot recognize the format to convert it to a timestamp, thus returning FALSE which will force the email to be sent immediately. Use the following format:

{parcel:expiration_date format="%Y/%m/%d %H:%i:%s"}
1
  • Suggestion: add the specific date format requirement to the docs.
    – Maxwell
    May 21, 2015 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.