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
0 answers

Swiftmailer Issue - HTML Content Getting Stripped by Email Client

I'm having trouble with Swiftmailer when i send a message and sometimes i receive that the content is completely broken (HTML stripped). My software sends a lot of emails, and this thing happens almost every day but we can't get any log of it, since…
0
votes
0 answers

Swiftmailer doesn't send email but php mail() works fine

Swiftmailer doesn't send email, here is error message: Expected response code 250 but got code "421", with message "421 4.3.0 collect: Cannot write ./dfs89F9xKs038683 (bfcommit, uid=0, gid=118): No such file or directory "#0…
user1483208
  • 385
  • 5
  • 24
0
votes
1 answer

Using Swiftmailer in local dev/mac with gmail, not working

I'm using swiftmailer- um... let me rephrase- trying to use swiftmailer! I am on MAC OSX, using gmail with my email client, apple mail. I am developing in a local environment so nothing is live. I should also mention that this is all in a MAMP stack…
Daniel
  • 19
  • 6
0
votes
0 answers

Swiftmailer works but page is not shown

I have PHP send me an e-mail with swiftmailer when somebody fills in a form. When I exclude the code of swiftmailer, and execute the form, I get my confirmationpage. When I include the code of swiftmailer, the mail gets sent, but I don't get my…
progon
  • 1
  • 1
0
votes
2 answers

Symfony2 Swiftmailer Service Definition does not Exist

I am trying to override the default transport for Swiftmailer by using my own service. This would allow me to use the same method calls as you would with Swiftmailer such as setTo, setSubject,attach, etc. However, I am getting the following error…
John B
  • 159
  • 3
  • 14
0
votes
0 answers

Client can't receive mail from swiftmailer

I am trying to send mail using swiftmailer.but no mail receive my client which is send from my system.I am using mini relay as my smtp server to send mail. here is my code
0
votes
1 answer

laravel : How to know number of emails successfully sent?

I'm able to send multiple emails using Mail class in Laravel. However, it is slow. Hence, I would like to create a progress bar using AJAX that shows how many emails have been sent before completion. How do I find out the number emails that are…
John Evans Solachuk
  • 1,953
  • 5
  • 31
  • 67
0
votes
1 answer

swiftmailer setFrom() doesnt work

i use Symfony2, and i need to send Email from my application. in my config.yml: swiftmailer: transport: smtp encryption: ssl auth_mode: login host: smtp.gmail.com in my config_dev.yml: swiftmailer: transport: gmail When i add the Email and…
lala
  • 111
  • 1
  • 3
  • 11
0
votes
1 answer

Send mail using SwiftMailer from different functions not working more than one time

Below is the sample code where first time calling is working but second time similar thing failing to send mail: You can see both of the functions are symmetric.
itsazzad
  • 6,868
  • 7
  • 69
  • 89
0
votes
1 answer

send in link id of username symfony2

want to send an email from my Symfony2 application, this email must contain a link of confirmation and when the user clicks on this link the state of a field in DB to change. i have this in my controller: $message = \Swift_Message::newInstance() …
lala
  • 111
  • 1
  • 3
  • 11
0
votes
1 answer

link in body of Email Symfony2

I want to send in the body of my Email a link, i have this in my controller . $message = \Swift_Message::newInstance() ->setSubject('demande de conge ') …
lala
  • 111
  • 1
  • 3
  • 11
0
votes
1 answer

Unable to send emails through gmail with swiftmailer in symfony2.3 application

I'm trying to send emails using gmail configuration but I can't. I'm not having any errors; I also checked the symfony log files. Nothing crashed, but no emails are sent :( I also ran the swiftmailer:spool:send command (maybe the emails were in the…
Oriam
  • 641
  • 10
  • 19
0
votes
0 answers

Use Swiftmailer with Symfony command on OVH server

I am currently working on a Symfony website hosted on an OVH server and I have some troubles. In fact, I am trying to create a command to send automatics emails. Then, I would like to use a cron to call this command 1 time by day but it is not the…
pom
  • 28
  • 4
0
votes
1 answer

Fatal error: Cannot redeclare class Swift Kohana Framework Email Swiftmailer

I installed Kohan Email module from http://github.com/banks/kohana-email to my Kohana Frameword and when I'm trying to register on my website I get following issue: Fatal error: Cannot redeclare class Swift in…
0
votes
1 answer

SwiftMailer 'ErrorException' with message 'fopen(/tmp/...) failed to open stream: Permission denied'

I've deployed a laravel app on a cpanel shared host. When sending email usign Mail class, the following error occurs randomly. (sometimes the mail is sent but sometimes the error occurs) production.ERROR: exception 'ErrorException' with message…
MTVS
  • 2,046
  • 5
  • 26
  • 37