Connect your app
PHP and Laravel
Connect PHP and Laravel apps to SendMock with laravel, Symfony or plain PHP.
See Connect your app for the ports.
Laravel .env:
MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_ENCRYPTION=nullSymfony Mailer: MAILER_DSN=smtp://127.0.0.1:1025.
SMS
Http::post('http://127.0.0.1:8025/api/v1/sms', [
'from' => '+15550001111',
'to' => '+8801700000000',
'body' => 'Your code is 482913',
]);To use a provider SDK (Twilio, SendGrid, ...) instead, set its base URL to the provider port http://127.0.0.1:8026; the SMS and Email pages list the providers.