Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [emails]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
22 views

Change email transport settings based on order site

I've been trying to send Commerce emails via two different domains but I'm having very little luck getting it working fully. In app.php I have something like this: 'mailer' => function() { $...
Jamie's user avatar
  • 121
3 votes
2 answers
75 views

Unable to find custom template when using a console controller inside a module

I'm creating my first module. Inside this module, I check a few entries for some conditions, and if all conditions are met, I want to send out a personal email. Everything worked, but I wanted to ...
Arno Ramon's user avatar
1 vote
1 answer
38 views

User activation mail not working after a while

Does anyone know how much time a user has to use the activation link in the user activation mail? Some clients report to us that that they see an error page after waiting a weekend to use the ...
Matthias's user avatar
  • 301
0 votes
0 answers
38 views

Prevent user email validation message showing twice In craft panel

When i enter same email which is already exist and click on save it is showing twice message. Can you please tell me it is craft cms's behavior? I have checked by disable custom modules and also ...
developer's user avatar
0 votes
1 answer
125 views

Sending emails with Craft 4 with custom Module

I'm currently working on a school project for my finals using craft cms. One of the targets I have to achieve are simply sending emails when someone fills in his email in an input mail and submits ...
Stef Verniers's user avatar
1 vote
1 answer
44 views

Craft CMS Utilities misses email option

I'm new to craft and I have to make a school project. At the moment I'm stuck when it comes down to sending emails. When a visitor lands on a page it can choose to subscribe to a fictional newsletter. ...
Stef Verniers's user avatar
1 vote
3 answers
98 views

Campaign plugin opinions

I have a client who has 250k+ subscribers and is sending out 500k+ marketing emails per month. Their marketing email provider is charging them a LOT. I’m interested in setting them up with the ...
mitrol's user avatar
  • 262
1 vote
1 answer
607 views

How to send email from Craft 4 custom plugin/module?

I want to send an email using crafts mailer in Craft 4. I've seen this post: How to send email from Craft 3 custom plugin? But now I need this adapted for craft 4. Unfortunately I did not succeed so ...
Merc's user avatar
  • 211
2 votes
1 answer
47 views

SetReturnPath not successfully bouncing emails back

I am using Craft 3 and Postmark SMTP to send emails to users. Users are activated manually because of a necessary user verification process, so we are not using the built in user activation link ...
Esther T's user avatar
0 votes
0 answers
145 views

How to send e-mail on an event

I was wondering how to send an E-mail after an event. In this example I'm using stripe payments and I want a mail to be send after a transaction was completed. Below I have tried to send a mail when a ...
aren's user avatar
  • 79
1 vote
1 answer
108 views

Configuring Craft 3 with Sparkpost - SMTP - email errors

I created a basic Sparkpost account and am trying to connect it to Craft to send email notifications. When I click the 'test' button in Craft, I get "there was an error testing your email ...
4midori's user avatar
  • 656
1 vote
1 answer
216 views

Attach file to Freeform submission

I'm building a form that allows a user the ability to attach their authored assets onto the form submission. I have a custom module that's hooking into MailerService in Freeform and looking up the ...
Steven Grant's user avatar
  • 1,855
1 vote
1 answer
182 views

Add custom field value to Commerce Order Confirmation E-Mail

in my confirmation e-mail i output all ordered items. now i want to add a custom field (the article number) from a product, but it does not show up. i show items like this: {% for item in order....
Henrik's user avatar
  • 425
1 vote
1 answer
27 views

Questions about newsletters & warning message on my interface

I would like to send an email to all the Architect Declare's French members. Is it possible to do this in the form of a newsletter? Moreover, it says this at the top of the interface when I connect to ...
user13015's user avatar
1 vote
1 answer
188 views

email settings per environment not working

I'm trying to set this up changing config/app.php with 'dev' => [ 'components' => [ 'mailer' => function () { // Get the stored email settings ...
Steven Grant's user avatar
  • 1,855
2 votes
1 answer
136 views

Craft Commerce multisite mail origin

I have a multisite setup where 2 sites can make orders on the same commerce, but I would like to have dynamic mail settings (domain name, origin, api keys, etc) based on the site of the order. Do you ...
Antoine's user avatar
  • 157
4 votes
2 answers
479 views

How to set SMTP Enrcyption with an environment variable

The official Craft documentation says it is possible to set the "Encryption Method (SMTP)" , Snipped from the documentation, with an Environment Variable. I think i am missing something but ...
Leonardo's user avatar
  • 471
2 votes
1 answer
864 views

how to check if a user email exists before creating a new user on a frontend form?

I have a signup form on my site and I want to check if the entered input (email) is already used in my DB before submitting the form. What's happening now is when I create a new user with a new email ...
Ra3d K's user avatar
  • 125
1 vote
2 answers
243 views

Send automated emails to users that haven't logged in for X amount of time

What would be the preferred method to send an automated email to users that haven't logged in for a set amount of time? Let's say for a month. Are there any plugins that have this feature, or will it ...
JBrew30's user avatar
  • 102
1 vote
2 answers
201 views

Specific emails failing in queue

I have craft 3.7.11 with commerce 3.4.2 installed. The majority of site emails send correctly, but every few days, one order status change email fails. The prior emails for these orders send correctly,...
Josh Parylak's user avatar
2 votes
2 answers
176 views

Send Customer Email based on Product Bought

I've discovered ways to do this with a single email template and lots of logic but I'm considering purchasing Sprout Email cause of all the features we would gain. Basically: I need to know if/how ...
Carlo Laitano's user avatar
1 vote
1 answer
87 views

Wrong default mail view directory?

I have a throuble with email sending from Craft CMS 3. For example, I'm trying to send email based on a custom view placed in mail/test.php. So I wrote this code: \Craft::$app->mailer -&...
mentalMedley's user avatar
1 vote
1 answer
159 views

Freeform plugin: dynamic recipient

I'm developing a site in Craft 3. I have added Freeform PRO to it. I am just wondering if this is possible: I have created a form, and I want all the notifications of submissions sent to the admin (...
Paloma Martinez's user avatar
1 vote
1 answer
148 views

Force specific language for user activation mail and edit localized email templates

I'm trying to figure out how to set the default language for new users and user activation emails. I have found the defaultCPLanguage config setting which does indeed change the default language of ...
MoritzLost's user avatar
  • 11.4k
0 votes
0 answers
58 views

Resend commerce email

We have a site that had a feature/plugin created that can handle payment deposits as well as full payments for events. We're wanting to create a job (like a CRON Job) or process that once a week goes ...
Jaytrix's user avatar
  • 337
1 vote
2 answers
247 views

Sending E-Mails via SMTP with email address that contains special characters

I got a problem with some smtp settings in my craft 3.5.14. The domain of my client uses special characters like (ö, ä, ü) and therefore for their email addresses. In this case my client only use the ...
Sylar I-i's user avatar
2 votes
4 answers
330 views

TWIG dataUrl function for resized images

Craft provides the very nice TWIG function dataUrl(pathToImg) to inline images in e-mails. E.g. <img src="{{ dataUrl('@webroot/assets/img/logo.svg')" /> will base64 encode the image ...
Matthias Redl-Mann's user avatar
1 vote
1 answer
170 views

Commerce email receipt not sent after order, but manual Send Email in Order screen works

I have placed a successful order in Commerce and it's settings have an email setup to send an email to the customer and use the example special/receipt email. But the receipt email is not sent once ...
Laurence Cope's user avatar
0 votes
0 answers
92 views

Email template error

In the logs, I have this error: 2021-02-01 18:00:04 [-][-][-][error][craft\commerce\services\Emails::sendEmail] Email template parse error for email “Order Submitted”. Order: “123456”. Template error:...
hackerman's user avatar
0 votes
0 answers
385 views

Certificate problems when sending mail via smpt (tream_socket_enable_crypto(): SSL operation failed with code 1)

I know there were already a lot of these issues on this board, but none solved mine, unfortunately. Be assured that I searched quite a lot (for hours) but could not solve it. I hope I have not ...
Luke's user avatar
  • 521
1 vote
1 answer
270 views

Commerce new order error : mail::getRenderLanguage() must be of the type string

I just pushed an update to the latest version of craft cms and craft commerce and ran into an error that is blocking new orders from finalizing. Everything works on the local site. On the live site, ...
Jack's user avatar
  • 31
1 vote
1 answer
54 views

Sprout Forms notification test giving me an internal server error

We have set up this particular Craft CMS site with smtp details and when testing from the Settings > Email page it works fine. We've installed Sprout Forms and created some forms - all seems pretty ...
Dman's user avatar
  • 11
3 votes
2 answers
1k views

Send email notification to admins when a new entry is created

Anyone written a simple plugin that does this out there? When a user submits a form on the frontend, it creates a new entry (with the default status set to disabled). I'd like to set it up so that the ...
Noah Yamen's user avatar
2 votes
1 answer
72 views

Main email address for "Contact Us" in settings is not changing

we have a contact section on our website which is going to an info@ email address. I need to change this to my email. I have gone to Globals - Settings - Email address and changed it there, but when ...
Catherine's user avatar
1 vote
0 answers
37 views

User notifications/subscriptions to content

I'm quoting on a project where users need to receive email notifications/subscriptions to content updates. Essentially they should be able to login to the site and once on a page subscribe to that ...
CreateSean's user avatar
  • 1,983
3 votes
1 answer
1k views

Send entry as HTML email

Looking to build a hybrid news service that publishes to a website but also sends an entry to a mailing list. Has anyone done anything similar?
alex morris's user avatar
1 vote
1 answer
1k views

Mail: There was an error testing your email settings

I'm trying to use mailgun to send emails. I'm on my local machine and I get the error: "There was an error testing your email settings." The API key matches up correctly and nothing of significance ...
agee's user avatar
  • 11
1 vote
1 answer
731 views

How to change the Craft 3 activation email?

In my organization many of the employees believe the user activation email sent out by Craft is spam. How do I change the email text and possibly add an image, like our company logo, to the email?
JJefferyDev's user avatar
1 vote
0 answers
369 views

Passing variables to email template not working

I am building a Craft plugin which sends emails to users of a subscribed list. I'm trying to get Craft to send the email with a Twig template and pass in variables to that template. So far I've been ...
Duncan McClean's user avatar
2 votes
1 answer
784 views

Error using environment variable for email setting

I'm trying to create an environment variable for email settings, but it doesn't work. Here is my email setting at config/general.php 'dev' => [ '@host' => 'host', '@port' => '587', ...
Lee's user avatar
  • 139
1 vote
2 answers
622 views

Parse variables into twig email template from custom module

I'm trying to send an email from my module and am trying to pass some vars into my module template that I can render using twig. Please note that this is a module template not a front end template. $...
John's user avatar
  • 974
1 vote
1 answer
1k views

Is there a way to ask for an email address before you download a file?

For Wordpress there's a plugin called Email before download (https://wordpress.org/plugins/email-before-download/). I'd like to ask the user's email address before they are able to download a pdf file....
Max Stouten's user avatar
1 vote
1 answer
425 views

Change base URL for email activation link?

I am using Craft as a headless CMS and have set base Url/siteUrl to the url of my React/Gatsby site. I needed to do this as my navigation plugin, Navie, appends it by default. But now when users ...
fxfuture's user avatar
  • 279
1 vote
1 answer
45 views

Bulk selecting Members and then including them in an email to another specific Member in a different member group

I'm wondering if the following is possible within CraftCMS and suggestions for making it happen? We have two Member groups (Customers and Contractors). When a Customer makes an enquiry they complete ...
Martin's user avatar
  • 1,203
1 vote
1 answer
130 views

What are the risks of using Gmail for sending email from Craft CMS?

In Craft's documentation for email it says: Gmail might be a good option depending on your appetite for risk. But I don't see anything about what the risks are. Is there a risk of getting hacked, ...
BBaysinger's user avatar
1 vote
2 answers
444 views

Send email with dedicated SMTP settings from a Craft 2 plugin

I have looked a lot for this but cannot find any dedicated solution. Basically I want to do this: How to send email from Craft 3 custom plugin? … but for a Craft 2 plugin. A how-to for the global ...
romadev's user avatar
  • 63
1 vote
1 answer
402 views

How to check if a user's new email has been verified

Background When the user setting Verify email addresses? is enabled, and the user's email is reset by a non-admin the address requires verification before being used as explained here. This does not ...
Seraphim Jester's user avatar
1 vote
1 answer
323 views

HTML Email Template setting not working for reset password email

I'm on the latest release of craft 3.x. I have the HTML Email Template setting set to a twig file in my templates folder. When sending a test email the template is used to send the test email, however ...
Rick Kukiela's user avatar
2 votes
1 answer
494 views

How to register a new System Message email

I want to send a welcome email to the user when they sign up (not an activation email). I can see the email and edit its text in the Control Panel, but the email doesn't send when a new user ...
Jed's user avatar
  • 21
2 votes
1 answer
172 views

Commerce 1: Different default order status based on product types

I want to assign different default order status based on product types. Is this possible? What I need to achieve is to send different email notifications based on product types. Can this be ...
biko's user avatar
  • 670

1
2 3 4 5