Questions tagged [emails]
201 questions
12
votes
1 answer
How to send email from Craft 3 custom plugin?
I have created custom plugin in Craft 3 and want send email to receiver or site email when user submits a form.
Kantesh Hotchandani
- 473
- 4
- 12
9
votes
1 answer
How to set CC or BCC emails to EmailModel?
Below is my code for sending mail and this is working fine but when i set cc or bcc mail is not sent them.
$email = new EmailModel();
$emailSettings = craft()->email->getSettings();
$email->fromEmail = $emailSettings['emailAddress'];
…
Renish Khunt
- 299
- 1
- 6
5
votes
1 answer
Pass content of system messages to HTML Email Template
I know I can set the template in the email settings to use a HTML template but how do I pass the content of the system messages (activate your account, reset your password, etc) to this template?
I've added this to the html template but then the…
Niall Thompson
- 1,199
- 1
- 11
- 24
4
votes
2 answers
Does Craft have built-in queue handling for outbound mail?
Does Craft have built-in queue handling for outbound mail? For example if Settings -> Email -> Protocol is set to "SMTP" and the mail server is temporarily down when an email is to be delivered, the email will then be delivered later when the mail…
Magnus
- 171
- 1
- 7
4
votes
2 answers
EmailService now has Twig render email messages in safe mode
EmailService now has Twig render email messages in safe mode.
-- https://craftcms.com/changelog#build2903
I don't think this is really a bug as it's intended behaviour, but this is causing me a pretty big issue because my email layout has code in…
Mike Pepper
- 4,391
- 17
- 26
4
votes
0 answers
Craft SMTP emails + Localhost [Mamp pro] (+postmarkapp)
Ok I'm running Mamp pro 3.0.5 for my localhost setup and php 5.3.28 and for the life of me, I can't get my localhost setup to send out emails.
My host name is smtp.postmarkapp.com
My username and password are my API key as specified by postmarkapp.…
Adam McCombs
- 1,695
- 12
- 25
3
votes
1 answer
What is the best way to generate email messages with attachments from Twig files?
I am coming from a .net/C# background and we have recently moved to a Craft/Twig platform. What is the best way to do this: Have a visitor come to a Craft webpage (Twig file), enter their email address in a text box, hit a button, and have an email…
Chip Shank
- 183
- 6
3
votes
2 answers
Best way to bulk email an attachment?
I need to take a file, and email it to a large group of people. Naturally, I'll be using a custom plugin Controller to trigger the email blast.
I'm already aware of this similar thread, but I don't believe it will solve my problem. If I remember…
Lindsey D
- 23,974
- 5
- 53
- 110
3
votes
2 answers
How to auto obfuscate email addresses in rich text field
I'm used to this feature in ExpressionEngine either natively or via the Auto Linker plugin, where you just wrap it around all the text fields. I've seen the Sprout Encode Email addon but that doesn't search through text and apply it.
I don't mind if…
Paul Frost
- 1,060
- 10
- 23
2
votes
1 answer
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 registers.
Here is my…
Jed
- 21
- 2
2
votes
1 answer
EmailModel - Unexpected character "$"?
This is probably a newby question, but, I am just trying to add a basic email send test and my twig page does not like the dollar signs. Is EmailModel built-in to craft or is there a plugin I need?
I am just trying to add this code to a basically…
Chip Shank
- 183
- 6
2
votes
2 answers
Mailgun (SMTP) + Craft
I'm trying to set Mailgun up on Craft (Like we've done plenty of times before) but each time it keeps saying that the connection to SMTP is failing.
The error I'm getting is:
2017/03/29 09:54:13 [error] [application] Email error: SMTP Error: Could…
Jason Mayo
- 878
- 5
- 18
2
votes
1 answer
Email subscriptions system
I'm looking for a way to have email subscribers database within Craft without using third-party solutions such as MailChimp.
I'm going to let users enter their emails to subscribe to site categories / channels and then send custom notifications with…
Yuri Salimovskiy
- 979
- 8
- 15
2
votes
1 answer
Do email messages use control panel or translation file template when sending by key?
When an email key is registered for use with craft()->email->sendEmailByKey, it shows up in the control panel at Email Settings->Messages. This seems like a great way to allow easy editing of the messages by clients.
If I have something hardcoded…
John O
- 391
- 1
- 9
1
vote
1 answer
Can you use a different html template for each system message email?
Is it possible to use a different html template for each system message email?
Alternatively can you determine which system email is being sent from within the template that you can set in the Craft email settings?
Sam Hibberd
- 729
- 3
- 13