socketlabs / socketlabs-php Goto Github PK
View Code? Open in Web Editor NEWSocketLabs Email Delivery PHP Client Library
Home Page: https://www.socketlabs.com
License: MIT License
SocketLabs Email Delivery PHP Client Library
Home Page: https://www.socketlabs.com
License: MIT License
Hey,
I have encountered error in InjectionResponseParser class.
Uncaught Error: Cannot use object of type stdClass as array in vendor/socketlabs/emaildelivery/InjectionApi/src/Core/InjectionResponseParser.php:27
I think ErrorCode should be taken by array because $injectionResponse comes from json_decode function in 18th line.
$errorCode = $injectionResponse->MessageResults[0]['ErrorCode'];
Hi - I noticed that all requests have addressResults
that is unpopulated, and that when there's an invalid email passed, there is AddressResults
which is populated:
[result] => Array
(
[result] => RecipientValidationInvalidRecipients
[transactionReceipt] =>
[addressResults] => Array
(
)
[AddressResults] => Array
(
[0] => Array
(
[emailAddress] => ryan.ewengmail.com
[accepted] =>
[errorCode] => InvalidAddress
)
)
)
I am finding that HTML containing a data uri with a base64-encoded image does not work in gmail (broken image) or Office 365 (via Windows Mail).
However if I use PHPmailer and SMTP then it works fine.
i have a valid email [email protected]
but the isValid
function is incorrectly checking if the left side is greater than 1 character
please use a more standardized way to validate emails, e.g.
var_dump(filter_var('[email protected]', FILTER_VALIDATE_EMAIL));
<?php
require_once 'vendor/autoload.php';
error_reporting(E_ALL);
use Socketlabs\SocketLabsClient;
use Socketlabs\Message\BasicMessage;
use Socketlabs\Message\EmailAddress;
$client = new SocketLabsClient(1, 'foo');
$message = new BasicMessage();
$message->subject = 'Subject';
$message->htmlBody = $message->plainTextBody = 'body';
$message->from = new EmailAddress('[email protected]');
$message->to[] = new EmailAddress('[email protected]');
$client->send($message);
Warning: file_get_contents(https://inject.socketlabs.com/api/v1/email): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
in ...\vendor\socketlabs\email-delivery\InjectionApi\src\Core\RetryHandler.php on line 25
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.