Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rens559's avatar

my mail wont send within the execution time

i am trying to send a mail using gmail but it doest work it's not sending within the execution time i have this in my env file

MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME= my personal email MAIL_PASSWORD= my app password MAIL_FROM_ADDRESS=my personal email MAIL_FROM_NAME="${APP_NAME}"

this is my mailable

use App\Models\Order;

class orderplaced extends Mailable { use Queueable, SerializesModels;

  public $order; 
/**
 * Create a new message instance.
 */
public function __construct(Order $order)
{
    $this->order = $order; 
}

/**
 * Get the message envelope.
 */
public function envelope(): Envelope
{
    return new Envelope(
        subject: 'Orderplaced',
    );
}

/**
 * Get the message content definition.
 */
public function content(): Content
{
    return new Content(
        view: 'emails.orderplaced',
    );
}

Mail::to('[email protected]')->send(new orderplaced($order)); and this is how im sending it can sombody help me find out why it is not working

0 likes
4 replies
Rens559's avatar

[2025-11-20 11:16:53] local.ERROR: Maximum execution time of 60 seconds exceeded {"userId":2,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 60 seconds exceeded at C:\xampp\htdocs\dashboard\kernAssortiment\vendor\symfony\mailer\Transport\Smtp\Stream\AbstractStream.php:82) [stacktrace] #0 {main} this is the only thing it said in the log

Glukinho's avatar

If you telnet to smtp.gmail.com:587 do you see SMTP greeting?

C:\xampp>telnet smtp.gmail.com 587

telnet

Rens559's avatar

im trying to do it with mailtrap now because people said it workerd better but im having the same problem

Please or to participate in this conversation.