Author Topic: How to add javascript results to text only email?  (Read 4089 times)

jesse920

  • Posts: 15
    • View Profile
How to add javascript results to text only email?
« on: January 28, 2006, 04:33:07 pm »
Hi,

I would like to send custom horoscopes emails to clients based on their birth dates. (Example: instead of a general "leo's horoscope today" a horoscope based on the day they were born: August 11, 1967).

The third-party script is basically javascript on html, and would require user input (Name, Month/Day/Year of birth).

(1) What code would I need to send the results of the script via email to the customer using ListMail Pro?

I would prefer to include the results in the actual listmail pro email (instead of as an attachment) looking something like this:


Quote
Hello fname!,

Here is your horoscope for the week:

[$automatic_script_horoscope_forecast_text_here]



And, just as a side note: most of my clients can only receive text-only emails.

Thanks!

Jess

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
How to add javascript results to text only email?
« Reply #1 on: February 26, 2006, 05:34:18 pm »
You might use a custom field to store their astrological sign, calculated via JavaScript based on the date they enter, and use User Selection to search the custom field and email users with a specific sign.

Cron-style followups could then be used to have your messages sent out every Monday, for example.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting