![]() |
Find and Replace |
Post Reply
|
| Author | |
shane104
New User
Joined: 25 Jan 2010 Posts: 17 |
Post Options
Quote Reply
Topic: Find and ReplacePosted: 04 Feb 2010 at 9:42am |
|
Hello!
I have a trigger that extracts the HTML code from an incoming email.
I need to be able to do a 'Find and Replace' on absolute URLs that reference the images.
I suspect the HTML would need to be passed onto a second trigger? - but please can someone help with the script?
need to convert to
Many thanks for your help on my other posts - All work / fantastic service.
Thanks
Shane
|
|
![]() |
|
shane104
New User
Joined: 25 Jan 2010 Posts: 17 |
Post Options
Quote Reply
Posted: 05 Feb 2010 at 5:29pm |
|
Hello, Is anyone able to help with this? - It would be a real help if it's possible.
Thanks,
Shane
|
|
![]() |
|
Stephen
Admin Group
Joined: 21 Oct 2005 Location: Stoke on Trent Posts: 1131 |
Post Options
Quote Reply
Posted: 10 Feb 2010 at 10:23am |
|
Hi,
You could create a script as follows:
This would simply do a replacement of all occurances of /brand1/ with /brand2/ in the HTML of the email.
You could then forward a new message using the %MSG_HTML% field as the HTML portion.
Steve
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |