login about faq

I am writing a routine to loop through a data send some emails. In the email I want to place a call-back link with a md5 hash of the email address and record id. To do this, I want to utilize the .SetReplacePattern method of the email library. Is there a way to update or remove/add the replacement patter so that I can just use one email object?

While Not EOF
  hash - crypt.enc(email(x) + id(x))
  link = "mysite.com/cb-function/ + hash
  email.SetReplacePattern "~link", link
  email.addto person(x), email(x)
  mm.send email

asked Mar 23 '15 at 17:05

emartinson's gravatar image


edited Mar 23 '15 at 17:06

Yes, if you call SetReplacePattern with a name that already exists, it will replace that named pattern with the new value. Unfortunately, there is no way to remove a replacement pattern once added. You would need to use a new email object instance.


answered Mar 24 '15 at 12:40

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 23 '15 at 17:05

Seen: 865 times

Last updated: Mar 24 '15 at 12:40

powered by OSQA