Implement Transactional Email in Website php | Community
Skip to main content
May 9, 2020
Solved

Implement Transactional Email in Website php

  • May 9, 2020
  • 2 replies
  • 8036 views

Hi,

Could anyone share how to implement transactional email (welcome email) in website php ?

This is my first attempt and quite confused how to implement RTEVENT & SESSION wsdl file in my website.

What endpoint URLs that I need to hit ?

 

Please help & advice

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SatheeskannaK

Hi @lindapri123,

 

Api documentation link to refer for transactional events on ACS. From my understanding you will be creating profile and then send welcome email for the profile created from ACS.

 

Transactional Event REST API 

Creating Profiles Using REST API 

How you connect to ACS REST API has to happen through adobe i/o,

ACS REST API using Adobe I/O 

Sharing the php library information that can be used to exchange the token through program to connect ACS via adobe i/o.

JWT Library 

 

Let me know if you have any questions.

 

Thanks!

SK

2 replies

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
May 9, 2020

Hi @lindapri123,

 

Api documentation link to refer for transactional events on ACS. From my understanding you will be creating profile and then send welcome email for the profile created from ACS.

 

Transactional Event REST API 

Creating Profiles Using REST API 

How you connect to ACS REST API has to happen through adobe i/o,

ACS REST API using Adobe I/O 

Sharing the php library information that can be used to exchange the token through program to connect ACS via adobe i/o.

JWT Library 

 

Let me know if you have any questions.

 

Thanks!

SK

Thanks, Sathees
May 11, 2020

Hi skk44926872,
Thanks for your answer.

I think my adobe developer already create those API and generate it into wsdl file.

So, I only need to implement those wsdl right ?
my question : is there any guideline how to consume those wsdl file to my website that use php  ?

 

Thank You 🙂

_Manoj_Kumar_
Community Advisor
Community Advisor
May 12, 2020

Hello @lindapri123 ,

Your developer can use the any library which can be used to get and post response over HTTP. I would recommend using the GuzzleHTTP library for this purpose.

You can use this library to post data in rest/soap format to first get the access token from Adobe I/O.
The code will look like this.

$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://ims-na1.adobelogin.com/ims/exchange/jwt', [
'form_params' => [
'client_id' => 'YOUR_CLIENT_ID',
'client_secret' => 'YOUR_CLIENT_SECRET',
'jwt_token' => 'YOUR _JTW_TOKEN'
]
]);
);


Then the developer will have to make another similar type of call. But this time instead of posting the client_id and secret the payload will be the SOAP data and http headers should have the access token to authorize the call.

You can ask your developer to read more here http://docs.guzzlephp.org/en/stable/quickstart.html#making-a-request

Thanks

     Manoj     Find me on LinkedIn