Questions tagged [mailer]

661 questions
2
votes
1 answer

Symfony: Logging all Mails created by Mailer

For various reasons I want/need to log all emails sent through my website which runs on Symfony 5. What I have so far is a subscriber that creates an Entity of type EmailLogEntry when a MessageEvent class is created (at least that's what I…
fun2life
  • 139
  • 1
  • 11
2
votes
1 answer

Reasons why Letter_opener would not work anymore?

I have a Rails project and i'm working on 2 computers ( MacBook and Imac ). Suddenly letter_opener stopped to work on MacBook. I recently updated both computers's Xcode, ruby version etc ... It still working on the Imac, so it's not about the…
Maxime Boué
  • 648
  • 7
  • 10
2
votes
3 answers

Tell a friend form not working

eozzy
  • 66,048
  • 104
  • 272
  • 428
2
votes
0 answers

How do I send an email from a mailer in a test environment

I want to send an email from a mailer during a unit-test. I have an empty fixture directory in /tests/fixtures/user_mailer/invite.yml I run the code in the rails console and the mailer sends successfully. However, I cannot call the class and the…
Richard Jarram
  • 899
  • 11
  • 22
2
votes
3 answers

Rails / Devise / Mailer: Throwing 'config.action_mailer.default_url_options' error on attempted registration

It's just been one problem after another today. I just deployed to my production server and testing it out, with issues whenever anything involves email. Particularly with Devise's confirmable registration email, whenever I sign up for an account,…
Shannon
  • 2,744
  • 3
  • 28
  • 37
2
votes
2 answers

Rails. Mass mail delivering

I have got about 1500 email addresses to send diplomas. What should I use for bunch delivering nowadays? Ar_mailer looks out-of-date.
fl00r
  • 82,987
  • 33
  • 217
  • 237
2
votes
0 answers

auto-responder with login details in Symfony

Here is the funcion im using public function sendCredentialsEmailMessage(UserInterface $user) { $template = 'Emails/afterRegister.html.twig'; $rendered = $this->templating->render($template, array( 'user' =>…
edo
  • 41
  • 6
2
votes
2 answers

Issue on from encoding mailer ruby on rails

I've an issue on the from name when I send mail with the Mailer by Ruby On Rails (Rails 4.1.4). The from name is not encoded with utf-8 when I put hook inside the mail. Kévin GUIOT work and return the correct name encoded. Kévin GUIOT [MyCompagny]…
2
votes
1 answer

Javamail : Not able to send an email with message body, text/html and attachment.

I am able to get all the message , html and attachment in the mail but the message text is received as a text file. I want the message to be displayed in the mail.Any help would be appreciated. final String subject = "Automation Execution…
testergirl
  • 121
  • 1
  • 4
  • 11
2
votes
1 answer

Symfony 1.4 mailer: change the subject depending on the environment?

I use Symfony 1.4 and I have two different configurations for the prod and dev environment, the former use the single_address as delivery strategy, and the latter use the spool: dev: mailer: class: sfMailer param: delivery_strategy:…
fdellutri
  • 963
  • 1
  • 7
  • 16
2
votes
1 answer

rails 3 domain for mailer

in my config/application.rb file I have a line: config.action_mailer.default_url_options = { :host => 'example.com' } How can I configure the host attribute for default url options automaticaly from the domain, where my Rails app is hosted ?
astropanic
  • 10,800
  • 19
  • 72
  • 132
2
votes
2 answers

Ignore mailer layout for specific mailer view

The mailer layout in layouts/mailer.text.erb & layouts/mailer.html.erb currently shows up in all the mailer views I create. How can I exclude the mailer layout for two views (sent.text.erb & sent.html.erb)?
FreeLine
  • 71
  • 1
  • 10
2
votes
2 answers

Rails 4 Mailer Uninitialized Constant

I am trying to setup a mailer to where when a listing's available date is today, it will fire off a mailer. To do that, I am using Date.today. The other relevant code and error is below. Thanks in advance. availabke_date_mailer.rb class…
Mike Wiesenhart
  • 316
  • 1
  • 4
  • 19
2
votes
1 answer

Override setGlobalTo of Laravel Mailer

I am having trouble with sending mails from Laravel to SendGrid API in my development environment. The thing is that I have a global TO set on my mail.php config file so that the all the emails that gets sent, go to that adress. But the…
Carlos Fdev
  • 745
  • 6
  • 24
2
votes
1 answer

sending an email using a form (ajax, jquery and PHP)

I was trying to send email using a form but I got this error, I think It's SMTP configuration or something related, I'm using WAMP in my local machine when I clic on send I got this error : ( ! ) Warning: mail(): Failed to connect to mailserver at…
user6901390