Questions tagged [mailer]
661 questions
4
votes
1 answer
PHP mail() Function not sending HTML
I'm trying to send HTML content through PHP mail() function. I don't know what is wrong with my code. I tried many ways, spent hours. but, nothing worked out. Can anyone tell me what is wrong with my code, please?

SHAKTHI
- 41
- 1
- 7
4
votes
1 answer
Send scheduled emails with pyramid_mailer and apscheduler
I've tried getting this to work but there must be a better way, any input is welcome.
I'm trying to send scheduled emails in my python pyramid app using pyramid_mailer (settings stored in .ini file), and apscheduler to set the schedule.
I also use…

Niel
- 1,856
- 2
- 23
- 45
4
votes
1 answer
How to get a before filter in Mailer?
Am using action mailer in ruby on rails.
I just want to filter the recipient emails according to email_bounce flag in users table.
Is it possible to use any filter in mailer

Ramanavel
- 408
- 8
- 19
4
votes
3 answers
Ruby Mailer: Wrong number of arguments
I'm working on building out my mailer, but I keep running into:
wrong number of arguments (0 for 1)
Call my crazy, but I feel like I defined everything correctly:
Controller (truncated for brevity):
def create
@cms484 =…

PSCampbell
- 858
- 9
- 27
4
votes
1 answer
Rspec - How to test if mailer is using proper template
There is a lot info about how to test mailers.
But I haven't found any resources how to test mailer to check if they REALLY use correct template.
example:
class NewsletterMailer < ActionMailer::Base
include SendGrid
default from: -> {…

nothing-special-here
- 11,230
- 13
- 64
- 94
3
votes
1 answer
Rails mailer "undefined method" error.
I'm trying to setup a simple mailer in rails 3.1.
I have the following code in my mailer...
class Notify < ActionMailer::Base
default :from => "signup@raceton.com"
def send
@email = email
@ip = ip
mail(:to => "test@test.com",…

Jon
- 3,905
- 5
- 26
- 22
3
votes
1 answer
How to send email from Symfony without running consume command?
I want to send email from Symfony 6.2. I followed the documentation and made this code (gmail address is example, I'm using own domain name):
$email = (new Email())
->from("from@gmail.com")
->to("go@gmail.com")
->subject("Here is my…

Elikill58
- 4,050
- 24
- 23
- 45
3
votes
1 answer
symfony mailer retrieve SentMessage object
I use symfonymailer the way described in Sending Emails with Mailer/Debugging emails
The SentMessage object returned by the send() method of the TransportInterface provides access to the original message (getOriginalMessage()) and to some debug…

endo.anaconda
- 2,449
- 4
- 29
- 55
3
votes
5 answers
How to save mail and send it later
I want to save the mail sent on certain days (eg.sunday) in database and then send them on next day.
I want to know if it is possible.
And how to save the mail object into database.

Mahesh
- 6,378
- 2
- 26
- 35
3
votes
2 answers
Symfony 6 can't send email with mailer (without configured database)
Hello guys i just started to building web using Symfony6 - im trying to send email using mailer however it somehow require database to be configured (+ some special table created for messages...).Maybe there is some workaround so it would work…

drcwycior
- 59
- 1
- 4
3
votes
1 answer
Ruby on Rails: delayed jobs are not working with mailer and give route error
I try to implement delayed_job for my mailer and have some problems even follow the documentation.
application.rb
require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test,…

anndrew78
- 196
- 1
- 20
3
votes
2 answers
Google keeps deleting app password (Rails)
I'm using rails and mailer. Whenever user signs up, the user gets an email confirmation. In the gmail account (business) I've set up 2-step authentication and an app password. The email gets sent well in production (tested by me only) with…

superbot
- 401
- 3
- 19
3
votes
2 answers
Uncaught Unsupported operation: Socket constructor
I am using dependency https://pub.dev/packages/mailer to send auto message through flutter web application for this part I am using the following code.
String username="************";
String password = "*******";
…

yogender
- 202
- 3
- 12
3
votes
4 answers
Rails, test mailer url
My application sends E-mails containing absolute urls.
I set host in config/environment/development.rb
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
Now I want to test if Email contains valid url. Using regular expression…

Konrad
- 1,605
- 3
- 24
- 45
3
votes
0 answers
Symfony 5.2 DkimSigner not working (DKIM lookup KO)
I never ask questions here usually but I'm stuck right now.
I've just upgraded my Symfony projet from 5.0 to 5.2 because I needed to DKIM sign my emails and there is a new feature to sign emails with Symfony Mailer on 5.2 :…

Zerrrr
- 31
- 4