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.

Swift Mailer is a library that facilitates sending email in PHP.

Benefits over the native mail() function include the use of , , or a custom transport layer, support for servers that require authentication, prevention of header injection attacks, support for attachments and more.


Documentation :

1670 questions
0
votes
2 answers

SwiftMailer not sending message

I'm learning about swift and when a run my code, throws the exception: Fatal error: Call to undefined method Swift_SmtpTransport::send()
Stefan Yohansson
  • 657
  • 5
  • 16
0
votes
1 answer

email getting blocked before reaching the spam folder

$transport = Swift_MailTransport::newInstance(); $messages1 = " Thank you for registering an account on www.satperfectscore.com
Please use this link to verify your…
Yashashavi Ym
  • 19
  • 1
  • 6
0
votes
0 answers

All emails with an attachment shows as plain text since last composer update

Yesterday I did a composer-update to make Laravel Debugbar work, but today I found a big problem. Every single email that I send out with Laravel and has an attachment get's buggered up. With buggered up I mean that the email doesn't show as HTML…
Basaa
  • 1,615
  • 4
  • 20
  • 41
0
votes
1 answer

Sending mail with Symfony (SwiftMail & Gmail)

I'm trying to use Swiftmailer with Symfony 2.4. Here is my config.yml : # This file is auto-generated during the composer install # parameters: # mailer_transport: gmail # mailer_host: smtp.gmail.com # mailer_user: jules.truong.pro@gmail.com #…
julio
  • 2,762
  • 4
  • 22
  • 34
0
votes
1 answer

Redirecting to success page with header in Swift Mailer

I would like my form (based on Swift Mailer) to redirect to a link by using header(); Problem is I just can't seem to find out where to place the header(); part so that the form is successfully sent and the person is redirect. This is the current…
bobs
  • 1
0
votes
1 answer

How to use php monolog

I've heard a lot about monolog(https://github.com/Seldaek/monolog) & trying to use that in one of our app. But, can't able to fig. out how to use that. Don't know it's I'm only can't able to get any documentation of it or really it has no…
Suresh
  • 5,687
  • 12
  • 51
  • 80
0
votes
1 answer

SWiFT + TWIG loop different senders

We have a script that monitors the database. In the database JSON data and fromName and fromEmail are stored. If the handledAt timestamp is null the email still has to be send. So we have created a cronjob that monitors the handledAt column. If it…
Peter Fox
  • 1,239
  • 2
  • 11
  • 31
0
votes
1 answer

Error using Swiftmailer on Symfony2's project in production

I have my website in production, with Hostinger, and with the same parameters and config I can't send emails in production but I could in developing mode. I have changed the parameters and config files with others settings I have seen in other…
xaaleja
  • 81
  • 1
  • 2
  • 12
0
votes
0 answers

Tracking Email Clicks in PHP

I am using SwiftMailer to send emails to people who are registered on my website. I want to track opens & click throughs, and I have the opens working perfectly. The click throughs are almost there... When you open the email I use an image set to…
DecimalCampaign
  • 35
  • 1
  • 2
  • 9
0
votes
0 answers

Swiftmailer won't send my e-mail, but doesn't give any errors

I'm trying to send out a mail using Swiftmailer. I have the following code in which I send out a mail: if(isset($_POST['submit'])) { $token = substr(sha1(mt_rand()),0,22); $resetAccount = "UPDATE members …
user2568495
0
votes
1 answer

swiftmailer buffer exploding at the seams, need to remove buffer somehow

Im having a major email issue here where some lines of code in my symfony app were generating an error email. we are talking 300K plus emails coming to my inbox which were generated since last friday. i think they are stacked up in a buffer. i…
blamb
  • 4,220
  • 4
  • 32
  • 50
0
votes
2 answers

Swift_Mailer import subject to 'mailto:' HTML tag

I'm using Swift_mailer in PHP to send auto generated messages. I've recently been asked to expand the e-mail to include contact information, so I want to use the html 'mailto' function for when people need to provide feedback. The only thing I can't…
I Dabble
  • 321
  • 2
  • 11
0
votes
1 answer

Symfony 2 Swift_Mailer multiple recipents

I am using symfony 2.1 and I have form for adding e-mails (with table in Database).Something like Newsletter. And i want to send group email for all recipents from this table. How to put all this email`s from database table into setTo. $message =…
Cre3k
  • 327
  • 5
  • 20
0
votes
1 answer

PHP SwiftMailer - Server with multiple IP addresses

I've got an already configured mail server with 12 IP addresses. Do I need any special configuration of SwiftMailer to use it properly ? Or its only my server job to use these IP addresses ?
0
votes
2 answers

Email goes in spam when I send it via others SMTP server

I'm using PHP Swift_mailer library to send emails to my customers' clients from behalf of customers. I use their SMTP server, port, login, pass: $transport = Swift_SmtpTransport::newInstance($mail_server['host'],…
alex23
  • 353
  • 2
  • 13