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

Can't get Task to Send Email in Symfony 1.4

I created a task to automate emailing a report in Symfony 1.4. Both this task and a related module for viewing in the web share a custom PHP class file. The task is able to pull in the data correctly, but I have not been able to get it to send out…
jperry
  • 1
  • 1
0
votes
1 answer

Swift Mailer not sending email

I am trying to use Swift Mailer to send an email with an attachment. The email is not sending. I am fairly new to PHP so it may be a simple problem, but I cannot figure it out. Code:
Will
  • 27
  • 10
0
votes
0 answers

Messages contains HTTP-response in Symfony2, SwiftMailer

When messages have come on the Email-server that contains HTTP-response like that: HTTP/1.0 200 OK Cache-Control: no-cache Date: Wed, 23 Jul 2014 07:36:31 GMT ... the text in Russian here ... I have following service for sending…
Razip
  • 155
  • 1
  • 12
0
votes
1 answer

Slow mailing using WAMP

I'm trying to send mails using classic PHP scripts. Mail() version :
Tubu
  • 1
  • 3
0
votes
1 answer

Disabled getmypid() on shared host

I've problem with swiftmailer on a shared host, it uses getmypid() to generate random strings but getmypid() is disabled 'getmypid() has been disabled for security reasons' in…
MTVS
  • 2,046
  • 5
  • 26
  • 37
0
votes
1 answer

Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host [Operation timed out #60]

I'm using Silex SwiftmailerServiceProvider. Now i need to send an email from my website but i keep getting this error. I searched all over the place but i find only the #110 errors etc. The code i'm using at the moment: $message =…
PieterJan
  • 105
  • 1
  • 10
0
votes
1 answer

Error loading swift mailer in symfony

Am using swift mailer to send emails for my symfony application.But it is throwing the error: There is no extension able to load the configuration for "transport". I am getting the error when it loads the configuration file the app is crashed.…
Randhir
  • 735
  • 4
  • 11
  • 22
0
votes
1 answer

PHP Fatal error: Class 'Swift_Validate' not found

I am trying to use Swift_Validate::email($email) and I get a php error: PHP Fatal error: Class 'Swift_Validate' not found. I have the latest version of swiftmailer. Is there some preference settings I need to do? I have tried including the…
MonteVista
  • 15
  • 5
0
votes
1 answer

Laravel Swift Mailer Exception for bad email address?

I am having a super strange issue, I will explain in detail why it is strange after the facts... The code... Mail::send('emails.cron.loggedinusers', $data, function($message){ // Get Admin user emails $adminUserEmails =…
JasonDavis
  • 48,204
  • 100
  • 318
  • 537
0
votes
1 answer

Swiftmailer Attachment Cannot Be Opened (Laravel 3)

I'm using the Swiftmailer bundle for Laravel 3 and trying to attach an uploaded file to an email message: $message = \Message::bcc(preg_split('/,/', preg_replace('/\s+/', '', $to))) ->from(Input::get('from')) ->subject(Input::get('subject') …
benedict_w
  • 3,543
  • 1
  • 32
  • 49
0
votes
1 answer

Debugging Laravel Mail::send()

On my shared host, PHP mail function works fine, but I can't send email using Laravel Mail::send(). when config/mail.php driver field is set to smtp, Mail::send() returns false when the field is set to mail the method returns true but the email…
MTVS
  • 2,046
  • 5
  • 26
  • 37
0
votes
0 answers

Symfony : Send email to an gmail email address

I can send an email to myself with my professional email. I even can send an email from my gmail email address to my professional email address. But my problem is : Why swiftMailer doesn't send my email to gmail, hotmail addresses ? Is that a…
scamp
  • 381
  • 2
  • 5
  • 14
0
votes
1 answer

SwiftMailer not sending to other domain

I've been trying to use the the SwiftMailer library for PHP for sending emails. It works fine during the development. However, when in actual use, it appears to be sending only to a particular domain only. For example, if I have users for domain.com…
MervS
  • 5,724
  • 3
  • 23
  • 37
0
votes
1 answer

blank pdf attachment sent using FPDF and SwiftMailer

I am trying to create a PDF stream using FPDF library and to send the pdf over e-mail using Swift Mailer. Below is my code. The mail is sent successfully and even pdf is also attached but the pdf is blank. It has a size of 1Kb and can be opened as a…
Geoff
  • 197
  • 2
  • 13
0
votes
1 answer

send a file and after delete that

Hello I am using SwiftMailer on Symfony2, I can send emails successfuly, but now i am first making a pdf, then attaching at the mail, sending and finally deleting the pdf file. here is my code. $pdf->Output('cuestionario/attach/' . $nombre . '.pdf',…
fjbatresv
  • 137
  • 2
  • 12
1 2 3
99
100