Typology rule to change the domain of an image in deliveries

Avatar

Avatar
Validate 1
Level 2
andreRivas
Level 2

Likes

13 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
andreRivas
Level 2

Likes

13 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
andreRivas
Level 2

03-04-2018

Hello guys!

I'm creating a typology rule to change the domain of an image in my deliveries. Currently, I have three sender addresses on the platform, because I send e-mails from three stores that are part of the commercial group.

The rule for this change should be as follows: If the delivery sender address has a "test.com" domain, in HTML the src = "http://campaign80-us.adobevlab.com/res/trn/87d1c2793a6a5e62a678882993a122b2.jpg" should be changed to src = "http: //campaign80-us.test.com/res/trn/87d1c2793a6a5e62a678882993a122b2.jpg ".

Does anyone have any tips for me to do this in the Adobe Campaign?

Once again, thank you !!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
MarcelSzimonisz
MVP

Likes

102 likes

Total Posts

227 posts

Correct reply

56 solutions
Top badges earned
Springboard
Establish
Contributor
Give Back 25
Give Back 10
View profile

Avatar
Springboard
MVP
MarcelSzimonisz
MVP

Likes

102 likes

Total Posts

227 posts

Correct reply

56 solutions
Top badges earned
Springboard
Establish
Contributor
Give Back 25
Give Back 10
View profile
MarcelSzimonisz
MVP

09-05-2018

Hello,

create typology rule type "Control" where you can do javascripting

1484009_pastedImage_4.png

In the code tab you can do eg.:

delivery.content.html.source <-- html of you email

delivery.content.text.source <-- text of your email

delivery.content.html.source = delivery.content.html.source.replace(regex_magic, replacement);

return true;

regex you have to do by yourself

Marcel

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

09-05-2018

Hi,

Any update on your question?

Florent

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

18-04-2018

Hi,

I don't know how to do this. Do you mean that you want the resource to be hosted on different domains? I'd recommend checking with support who know more about these types of domain-related queries.

Let us know if you find an answer.

Florent