Questions tagged [mailtrap]

The Mailtrap SMTP server is a default SMTP method in Laravel.

The Mailtrap SMTP server is a default SMTP method in Laravel. It helps you avoid sending test emails to real inboxes by accident. It is designed to catch these interim emails and help you debug them. With Mailtrap, your email will never land in the real inbox in any of the email clients.

60 questions
2
votes
0 answers

Testing Yii2 emails with mailtrap

I want to test out my emails sent from a Yii2 Application with mailtrap. I have copied the exact configuration from mailtrap into my web config file. My email configuration is as shown: 'mailer' => [ 'class' =>…
rufusy
  • 107
  • 1
  • 10
2
votes
1 answer

email verification on laravel 7

I have a question, actually, I'm developing a web site using laravel 7 and I successfully make an email verification and password reset functionality using mailtrap.io; but all theses just in localhost, I'm wondering if there is any other way to use…
2
votes
1 answer

Wordpress not sending email with Mailtrap

I followed these instructions. https://codex.wordpress.org/Plugin_API/Action_Reference/phpmailer_init Emails are sending and working for woocommerce, for example when I complete a purchase invoices are sent. But for some reason emails do not send…
Gavin
  • 632
  • 8
  • 10
2
votes
1 answer

laravel 7 Cannot send message without a sender address

i try to create project in laravel. When i try register i have this error : Cannot send message without a sender address But i think i good configur in…
user12894447
2
votes
3 answers

Laravel mailtrap not working on localhost

I have a Laravel 7.0 project, when I try to send email to mailtrap it gives me following error. Swift_TransportException Unsupported sendmail command flags []. Must be one of "-bs" or "-t" but can include additional flags. I have following in my…
Adeel Tahir
  • 203
  • 2
  • 9
1
vote
0 answers

Laravel: Connection could not be established with host "live.smtp.mailtrap.io:587": stream_socket_client(): Unable to connect to

I'm currently using Laravel as my framework for a website. Error Code: Connection could not be established with host "live.smtp.mailtrap.io:587": stream_socket_client(): Unable to connect to live.smtp.mailtrap.io:587 (Connection refused) I am…
1
vote
0 answers

nodemailer not sending email in testing

I am trying to sending email using MailTrap for Testing sendMail() always return error i tried all ports 25,2525,587 and this my function const sendEmail = async (options) => { // Create a transporter const transporter =…
1
vote
1 answer

Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. Failed to connect to server

I installed PHPMailer to send emails from my PHP application. I'm using Mailtrap to fake the server. However, when I submit the form to send an email I get this error below: Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not…
1
vote
1 answer

Failing to send Email (Mailtrap) with Laravel 9 , by getting data from Vue.js 3 component , with Axios

Hello when i get some data on my Vue app (from 2 forms, 1 select and 1 table), i want to click a button to send that data to the email put on the respective form. With my code, i am able to show the data i want to send, in a output i create on my…
Tigane
  • 99
  • 8
1
vote
2 answers

Mailtrap API - Cannot send emails - "Unauthorized" API error

I am using Mailtrap's SMTP to send my development/test e-mails to a fake inbox. Their SMTP server feature works well, but I'm now trying to implement their API v2 instead. Every time I hit the https://send.api.mailtrap.io/api/send endpoint, I keep…
Bruno Leveque
  • 2,647
  • 2
  • 23
  • 33
1
vote
2 answers

nodemailer && mailtrap -> connect ETIMEDOUT error

I'm Working on a Dummy Project in nextjs and trying to send a reset password message to the user email using mailtrap and nodemailer but i have a problem I can't find any solution for it when I send the request this error happen Error: connect…
1
vote
0 answers

Mailtrap not working with Wordpress localhost (running on Xampp)

I am trying to use Mailtrap to test emails sent from my localhost environment (Wordpress running on Xampp, Mac OS). I implemented the code mailtrap gave me, into functions.php: function mailtrap($phpmailer) { $phpmailer->isSMTP(); …
Ben Viatte
  • 485
  • 1
  • 5
  • 16
1
vote
1 answer

Connection could not be established with host mailhog :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known

I get the above error when I try to send an email from my Laravel 8 Project Problem: The Mail_host points to mailtrap in my .env and not…
Wanjila Abraham
  • 521
  • 1
  • 7
  • 17
1
vote
0 answers

How to set CC/BCC by default on Laravel Mail

I currently have an existing application that sends and email to a user. What I wanted to happen is that by default there should be a list of emails (from config file) attached to CC/BCC without manually setting ->cc or ->bcc. So whenever a mail is…
1
vote
2 answers

Mailhog, Trapmailer and gmail via symfony

I got some trouble with mails generation on my Symfony app : I use docker when I use Gmail to send emails : MAILER_URL=gmail://MyAddress@gmail.com:MyPw@localhost everything works fine but as soon as I try to intercept these mails…
1
2 3 4