proxiedmail-php-client
ProxiedMail PHP Client (by proxied-mail)
codeception-email-testing-example
Example repository about testing emails with codeception (by proxied-mail)
proxiedmail-php-client | codeception-email-testing-example | |
---|---|---|
4 | 1 | |
1 | 1 | |
- | - | |
7.7 | 5.5 | |
23 days ago | about 2 months ago | |
PHP | PHP | |
GNU Lesser General Public License v3.0 or later | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proxiedmail-php-client
Posts with mentions or reviews of proxiedmail-php-client.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-25.
-
Email testing with Codeception
actor: AcceptanceTester modules: enabled: - \Codeception\Module\Asserts - WebDriver: url: http://proxiedmail.com browser: chrome host: 'selenium-chrome' port: 4444 capabilities: goog:chromeOptions: args: [ "--headless" ]
-
How to receive email with NodeJS
let ProxiedMailApi = require('proxiedmail-api'); let apiInstance = new ProxiedMailApi.UserApi(); let authReq = { 'authRequest': ProxiedMailApi.AuthRequest.constructFromObject( { "data": { "type": "auth-request", "attributes": { "username": "example.com", //please pass your credentials here after sign up "password": "1" } } } ) }; //logging in apiInstance.userAuth(authReq, (error, data, response) => { if (error) { console.error("error:" + error); } else { let token = data.data.attributes.token; var apiApiClient = new ProxiedMailApi.ApiApi(); apiApiClient.apiClient.authentications['api_auth'].accessToken = token; //settings bearer token //getting api token // your can skip this step and get one on the UI https://proxiedmail.com/en/settings apiApiClient.apiV1ApiTokenGet((error, data, response) => { if (error) { console.error("error:" + error); } //settings up api token let apiToken = data.token; var callbackApi = new ProxiedMailApi.CallbackApi(); callbackApi.apiClient.authentications['api_key'].apiKey = apiToken; // creating built-in callback-receiver callbackApi.addCallback((error, cb, response) => { const proxyBindingPayload = {'proxyBindingCreate': createProxyBindingPayload(cb.call_url)} var proxyBindingApi = new ProxiedMailApi.ProxyBindingApi(); //creating proxy-email and assigning callback url proxyBindingApi.addProxyBinding(proxyBindingPayload, (error, pb, response) => { //continuously checking callback status to get the email //just send the email to pb.data.attributes.proxy_address to check it out const interval = setInterval(function () { const proxyBinding = response; var receivedEmailApi = new ProxiedMailApi.ReceivedEmailApi(); receivedEmailApi.apiV1ReceivedEmailsLinksProxyBindingIdGet( response.body.data.id, function (error, pb, response) { console.log("Checking inbox of: " + proxyBinding.body.data.attributes.proxy_address) console.log('LIST OF EMAILS', response.body) for (let i in response.body.data) { receivedEmailApi.apiV1ReceivedEmailsReceivedEmailIdGet( response.body.data[i]['id'], function (error, pb, response) { console.log( "RECEIVED EMAIL \n", response.body ) } ) } } ) }, 2000); }); } ) }); } }); //callback construction function function createProxyBindingPayload(callbackUrl) { return ProxiedMailApi.ProxyBindingCreate.constructFromObject( { "data":{ "type":"proxy_bindings", "attributes":{ "real_addresses":[ "[email protected]" ], "proxy_address": null, "callback_url": callbackUrl, "is_browsable": true, } } } ); }
-
How to receive email with PHP
Install the composer library into your application.
codeception-email-testing-example
Posts with mentions or reviews of codeception-email-testing-example.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-25.
-
Email testing with Codeception
In Github example repository it's shown how to organize passing this value straight to the test. But please pay attention to codeception.yml which allows you to pass the variable from .env to the tests with the following lines: