Keycloak: How to add cc or bcc while sending email? - keycloak

Requirement:
How do we add cc or bcc when an email is sent through keycloak?
Problem:
When a user is invited to sign-up using keycloak invitation mail is sent. But in some cases, the invitation is not sent, so I plan to add cc or bcc to the invitation mail.
Can anyone provide a solution how do i add cc or bcc to keycloak integrated email?

As i checked out 10.0.0v, Keycloak built-in email implementation doesn't contain field for cc or bcc. Eventually, keycloak is open-source. You can write your own SPIs by extending default behaviors. For example;
Extend DefaultEmailSenderProvider and add cc & bcc fields java SMTPMessage.
Extend FreeMarkerEmailTemplateProvider and override sendVerifyEmail.
Finally, you need to override Verify Email required action and call your SPIs to send

Related

Is there a way to add a CC email address in SendGrid's Automation Email system?

I am currently building an automation email in SendGrid. The setup process seems very straightforward, but I can't find how or where to add a CC email address.
I've researched SendGrid's documentation and other sites to find a possible solution. Two sources had the right idea, but they provided examples using Node.js (see SendGrid Personalizations and Twilio Blog). I am needing to add a CC address inside SendGrid's Automation Email creator.
Does the SendGrid Automation system provide this capability, or is this best achieved through Node.js (or other background-handling languages)?
I don't believe that you can send an Automation with a cc.
You can track when Automation emails are sent to users by registering for the Event Webhook.
When users reply to the automation email and just get an email saying that their message was received, I assume that is because the email address you send the automation from is just set up to autorespond. You could set that email address up with the Inbound Parse Webhook so that you can trigger other events when you receive emails to that address. You could, in that case, send an email to your sales team, or register the response in a database, or forward the message to a CRM system.
If the only solution for you is to use a cc, then Automations may not work for you and you will have to send using the Mail Send API which gives you lots more control over the email being sent, but does lose the automation features.

sendgrid/mail wont allow sending 'from' to be dynamically

I have a form on my portfolio that allows a user fill in a form with a question they have and send that to me by email.
When i try to use sendgrid it only allows me as a verified user to send emails from my own email address. but i want the 'from' field to be dynamically filled in by that user and then sent to me.
note: I also tried 'emailjs' but that works fine in development but fails in production.
Any suggestions on how to fix this or any other platforms i can use for that preferabally free since it is a hobby project.
Thanks
Twilio SendGrid developer evangelist here.
You do need to use a verified email address to send emails from SendGrid, this is to stop people using a form like you describe to spoof anyone's email address.
A better idea is to send emails created in your form from a verified email address and set the reply-to address as the submitted email. That way you can send with SendGrid and then when you reply in your email client it will return to the person that submitted the form.
I added more detail and example code (in Python) in this answer.

Forms not sending emails, but it works in Install tools

I have a TYPO3 default form with 2 text fields. I submit the form and I get the "Thank you" message, but I dont receive the email in my Gmail inbox.
I checked the spam folder but nothing. I tested to send email via Install tools and I received the email.
I use SMTP :
[MAIL][transport] = smtp
how can I know why mails are not sent in TYPO3 default form ?
I found the solution,
I just have to change the Sender address to the same as [MAIL][defaultMailFromAddress]

Sending secret/personal message to particular cc in outlook

How can I send personal message to particular CC recipient(s) in outlook using C# so that other CC or or BCC or TO recipients can't able to view this personal message?
You will need to send a message to that recipient only.

Codeigniter: Can I send email using codeigniter email library with a POP account

I am a novice at this email sending task. I have a pop account on my company's mail network. Can I send email with this account using the default email library in codeigniter.
Some code references will be thoroughly helpful
Check out Email Class - supports mail, sendmail and SMTP protocols.