Questions tagged [swiftmailer]
Swift Mailer is a library that integrates into any web app written in PHP, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features.
1,673
questions
0
votes
2
answers
53
views
Syntax error, unexpected token ")" when sending mail in laravel 8
I know the title seems familiar but hear me out...
My code works locally when I try to send out an invoice via email and the email gets sent. However, I deployed the same code to production on ec2 and ...
-1
votes
0
answers
20
views
How to use swiftmailer on xamp localhost?
I am trying to send an email using swiftmailer and php but i am getting this error.
Warning: stream_socket_enable_crypto(): SSL operation failed with code
OpenSSL Error messages: error:1416F086:SSL ...
0
votes
0
answers
38
views
Laravel Email Sending - Expected response code 220 but got an empty response
I have an application which auto send email to users at scheduled time. However, there is such error occasionally (Sometimes work and sometimes don't work) :
Expected response code 220 but got an ...
-1
votes
0
answers
29
views
Laravel email working with sync but with redis, it's showing SSL error
My Laravel application is showing the following error in the log
[previous exception] [object] (ErrorException(code: 0): fwrite(): SSL operation failed with code 1. OpenSSL Error messages:
error:...
1
vote
0
answers
58
views
UVdesk Swiftmailer with Gmail - mail not sending
Here's the error message i keep getting. I have tried setting the php.ini sessions and i still get this error.
I changed the yaml file to connect directly to gmail & confirmed the account.
[2022-...
-1
votes
0
answers
38
views
Laravel 8 emails fail to send and .env changes are not picked up
I working on a Laravel app and until recently the emails worked ok then they stopped working on both of my development machines - a laptop and a PC. However, they still do work on staging. Then, while ...
0
votes
0
answers
14
views
Swift_IoException: Unable to open file for reading from a public url
I am trying to attach a pdf to an email generated using SwiftMailer on Laravel. The pdf is at a publicly accessible location, but I get this error:
Swift_IoException(code: 0): Unable to open file for ...
0
votes
0
answers
24
views
Catch a swift_TransportException
I'm receiving a lot of "Swift_TransportException: Connection could not be established with host ..." on my slack channel. Everything seems to work fine and the mail service is doing its job. ...
0
votes
0
answers
7
views
Reroute Swiftmailer email
I set up a webform using different email handlers.
Mails are sent out using Swiftmailer.
Now I want to programatically reroute the emails by altering the to header/variable through the ...
0
votes
0
answers
216
views
swiftmailer Swift_SmtpTransport compatibility issue with office 365 OAUTH
Getting error when sending mail using the code:
$transport = (new Swift_SmtpTransport('smtp.office365.com', 587, 'tls'))
->setAuthMode('XOAUTH2')
->setUsername('sender@Testmail699....
0
votes
1
answer
164
views
Getting Failed to authenticate error on smtp when trying to send mail using swiftmailer with office 365 oauth2 accesstoken
I am trying to send mails using swiftmailer and office 365 which failed to authenticate. I have purchased an office 365 account, azure subscription. My environment is php.
Steps I did:
Created office ...
0
votes
1
answer
62
views
Can't send mail with Lumen framework and no error appears
Since yesterday I have had problems sending emails with Lumen. I think I have followed all the steps in the documentation correctly, but unfortunately I cannot send anything. Moreover, no error is ...
0
votes
1
answer
59
views
yii2 mailer how to not automatically use smtp gmail username as "From" Header
I built a website which has a contact form. I use yii2 mailer and smtp gmail setup for sending email. This is my smtp setup:
'host' => 'smtp.gmail.com',
'username' => 'websendmail1234@gmail.com',...
0
votes
0
answers
24
views
How to get the path of a file in a Symfony4.4 controller?
I want to send an email with an attachement so therefore I need the path to the pdf file.
I tried the flowing code in the controller:
$contact = $SendEmailForm->getData();
$file = $...
0
votes
0
answers
24
views
Hide Received information from Email when using SwiftMailer and SMTP
I have a VPS hosting and I am using SwiftMailer to send emails using an smtp from another hosting.
When I send an email to the user the source mail contains my VPS ip address and domain in headers, ...
0
votes
1
answer
151
views
Symfony3.4: Exception occurred while flushing email queue: Expected response code 220 but got an empty response
Project in symfony 3.4 framework, all functions are ready, but an exception to get errors in the process is not working because swiftmailer is not working
<parameters.yml>
mailer_transport: smtp
...
-1
votes
1
answer
52
views
Yii2 swiftmailer sending the html email from different directory
I'm trying to send html email using Yii2 swiftmailer, but the email sending using different file.
my code :
Yii::$app
->mailer
->compose(
['html' => '...
-1
votes
2
answers
253
views
How to forward email body without any change
Need to Forward raw Email without any change
Working on an email forwarding script and implementing SRS with keeping DKIM intact (for DMARC).
I have Laravel application piped to postfix and presently ...
-1
votes
1
answer
73
views
Cannot receive any mail using default mail of swift mailer in yii2
I tried to mail using default mail of swift mailer but didn't receive any mail.
here is my config
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' =&...
0
votes
1
answer
95
views
How do I configure Symfony Mailer with Silverstripe?
I am new to Silverstripe and currently doing the lessons. The version is 4.10 which has dropped support for Swiftmailer and are recommending Symfony Mailer. I have installed Symfony Mailer using ...
0
votes
0
answers
76
views
How do you change the layout of webform submission in PDF fancier?
I have been using swift mailer in Drupal 9 to email the submission with a PDF file to the recipient. I have written twig to format the submission in PDF attachment. However, when I open the PDF file, ...
0
votes
0
answers
45
views
how to make my website logo show in email?
i developed a web application with personalized email through my cpanel (admin@tailorsmind.com), connected it with my application through php (swiftmailer) in the source code, emails are going through ...
0
votes
0
answers
45
views
Connection could not be established with host mail.tap-recruitment.com [ #0]
I'm making an application for recruitment, but i have a problem when setting up dynamic email using swiftmailer. When I use the settings from mailtrap it works for sending messages, but when using ...
0
votes
1
answer
93
views
Laravel Email Queue not sending email
I am trying to send the email( using queue). I am experiencing this strange behavior with the Laravel queue, it sends email perfectly in sync but does not send an email when send using a queue. And If ...
1
vote
0
answers
55
views
How to check on SwiftMail if "spool" is enabled? [duplicate]
how I can check if spool is enabled via configuration?
In Swift_Mailer, I have a transport object and spool - but of course is private, in config:
swiftmailer:
url: '%env(MAILER_URL)%'
spool: {...
0
votes
1
answer
270
views
Symfony 4.4 - Swift Mailer installation failed
I'm a beginner in Symfony and would like to know how to deal with the following installation issue:
I'm using Symfony 4.4 and trying to install Swift Mailer. Following the documentation on this link, ...
0
votes
2
answers
57
views
Error after registration usnig laravel ui
after i click register button i get the error bellow
Swift_TransportException Process could not be started [The system cannot find the path specified. ]
and whene i go to phpmyadmin it seems that i ...
7
votes
2
answers
24k
views
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead
I can't install breez and npm for this situation. What should I do to solve this problem?
When I'm going to create a laravel project show this and breez install time too.
0
votes
1
answer
54
views
Sending emojis via SwiftMailer
I would like to send newsletters via SwiftMailer, but there should be an emoji in the subject of the email. I think the right charset is utf8mb4 but how can I change the charset for the subject?
It ...
0
votes
0
answers
247
views
Laravel Notifications issue
I have an issue sending Mails with Laravel (8.43.0).
The project is an intranet app without access to the internet, so updating components will be very tricky.
I've got a lot of Notification classes ...
0
votes
1
answer
113
views
How to use custom display name when sending e-mail via Microsoft 365 SMTP? (example with PHP Swift Mailer)
I am sending an e-mail using one of our Microsoft 365 accounts.
The account has the following configuration set on MS365:
Display name: this should not be displayed
e-mail: example@domain.com
In my ...
0
votes
1
answer
66
views
How to style (HTML) Monolog emails sent via Symfony Mailer
Due to depreciation, I'm converting my Monolog email logging from Swiftmailer to Symfony Mailer (as recommended here).
I have successfully completed the conversion and am receiving the emails.
However,...
0
votes
1
answer
220
views
Cannot send email use looping with error response code 550 5.7.0
I'm trying to send multiple email recipients inside loop, but this email only sends some emails and stops with the error:
Swift_TransportException: Expected response code 354 but got code "550&...
0
votes
0
answers
89
views
Send Multiple Email using queue failed
I have problem when i try to send multiple emails using yii2-queue-mailer, here i am using yarcode extension. But when i try to send email out of looping process it doesn't work. what's wrong here?
...
0
votes
0
answers
174
views
Expected response code 250 but got an empty response swift_transportexception Amazon SES
I am using Amazon SES for sending emails from PHP application through Swift Mailer. I am searching on google from 3 4 days but was unable to find any solution. I tried every possible solution ...
-1
votes
1
answer
264
views
SwiftMailer spool:send command - how to see details about sent messages? Verbose option not working
Here is the output of the --help option for SwiftMailer's send command:
$ php bin/console swiftmailer:spool:send -help
Description:
Sends emails from the spool
Usage:
swiftmailer:spool:send [...
0
votes
0
answers
100
views
Unable to connect with TLS encryption with laravel 4.2 swiftmailer randomly
We got an error "Unable to connect with TLS encryption" while sending emails using SMTP ( office365 ).
We have faced this issue, but not for all mail. This error will come randomly.
For ...
0
votes
2
answers
338
views
Laravel 8 reset password doesn't send emails
I know this issue has been brought up several times but I couldn't find any solution for my problem.
Here's the MAIL part of my .env file:
MAIL_MAILER=smtp
MAIL_HOST=localhost
MAIL_PORT=25
...
1
vote
0
answers
148
views
Why Symfony Monolog send error extra mail
I have an App in Symfony 5 and a bug reporting system with Monolog.
The problem occurs that when they send me an email with an error, I also get another email with the following
DEBUG
Message:
Email ...
-1
votes
1
answer
37
views
Conversion from SwiftMailer to PHPMailer [duplicate]
I'm falling back from SwiftMailer to PHPMailer.
In SwiftMailer, whenever you want to incorporate images into your HTML emails, you must insert the following line of code for each image within an ...
1
vote
0
answers
322
views
Address in mailbox given [c] does not comply with RFC 2822, Laravel, Swiftmailer
I want to add bcc mail to my Laravel 8 mailing system. Before I add bcc it works as it should.
Then in MailMessage.php I change this:
class MailMessage extends SimpleMessage implements Renderable
{
...
0
votes
1
answer
252
views
How can I detect if an email didn't reach a recipient? (Gmail SMTP, delivery failures)
I've built a Laravel web app that uses Gmail's SMTP to send email to customers. Under the hood, I believe the driver uses SwiftMailer. Settings are working and emails sent are reaching customers.
...
0
votes
1
answer
463
views
Swift_TransportException(503) - Expected response code 354 but got code "503", with message "503 5.5.1 Bad sequence of commands - Laravel
I am using Office 365 setting for sending my project's promotional email marketing. My mail sender email address is registered with office365 and I used SMPT settings with office365. When I send email ...
0
votes
1
answer
326
views
What do we need to configure, to send emails with Laravel?
When using Nodemailer in Node.js, we need to have a SMTP server setup, in order to deliver the messages. For example, most commonly used SMTP servers are given here.
What I wonder is, when sending ...
1
vote
1
answer
102
views
How can I send authenticated email using Swiftmailer in a Yii2 application?
I need to tell SwiftMailer to require authentication to be able to send email from my web sites.
I've searched around for a few days but cannot find which parameter to specify.
My hosting company say ...
2
votes
1
answer
853
views
Laravel not sending email or not received mail
I am trying to send a mail from my domain email (cPanel), but I didn't receive any mail in my Gmail Account. Also, Laravel didn't display any errors.
.env
MAIL_MAILER=smtp
MAIL_HOST=mail.domain.com
...
0
votes
1
answer
130
views
how to use custom SMTP configuration in laravel
i'm trying to send email with custom SMTP configuration (not in the .env file)
what i did try:
Config::set('mail.mailers.smtp.host', $emailConfig->MAIL_HOST);
Config::set('mail....
0
votes
1
answer
87
views
What are the differences between installing swiftmailer with Composer or apt? [duplicate]
I am using PHP Version 7.4.3 on Ubuntu 20.04.2 LTS. In its online documentation Symfony says to install swiftmailer using composer:
The recommended way to install Swiftmailer is via Composer:
$ ...
0
votes
0
answers
1k
views
Symfony - "503 5.5.2 Need rcpt command" message when sending mail with Swiftmailer to external addrress
I'm trying to send emails through swiftmailer in a Symfony 4 application. Here is my swiftmailer.yaml config file :
swiftmailer:
mailers:
mailer_smtp:
url: '%env(MAILER_URL)%'
...
0
votes
1
answer
166
views
Issues while trying to install SwiftMailer without composer. Trying to send smtp email with pdf via php
I am facing some pain trying to install another one php library without composer and other stuff.
What did I do:
In the same folder where executable script (index.php) is situated I created folder ...