I was wondering if there is any way I could use SendGrid's dynamic templates when I'm sending an e.g. Reset Password email to a user registered on my keycloak realm.
My Keycloak is already configured to work with SendGrid and it is sending emails through SendGrid, but it is using default keycloak's emails. (And I rather not copy all my templates from SendGrid to my Keycloak templates)
Related
I have been trying to setup sendgrid on SQL Database Mail but all the time it says Cannot send mail to mail server.
This is what i have done.
I have sendgrid accound with abc#mydomain.com and created api key and SG.xxxx password.
As this is prod setup instance, i had done domain level authentication and my webmaster updated CNAME as requested by sendgrid.
Tested using TELNET smtp.sendgrid.net 587 and authenticated with SG.xxxx password Base64 encoded and this was able to send email from abc#mydomain.com to xyz#mydomain.com
I setup profile with abc#mydomoain.com as SQL notification Profile and selected Basic Authentication and provided 'apikey' as username and 'SG.xxx' as password in Database Mail - 'Configure Database Mail' option in SQL SSMS. Unchecked - 'The server requires secure authentication (SSL) connection' Port 587
I tried to 'Send Test Mail' with 'abc#domain.com' to 'xyz#mydomain.com' but the Database Mail reflects as below screenshot error
I have tried using abc#mydomain.com and sendgrid account password in Database Mail Config wizard for Basic authentication, but sendgrid suggested they don't accept Basic authentication. Please help how and where should i pass the api key if not under Basic Authentication ?
I tried updating with msdb.dbo.sysmail_add_account_sp nad updating records but it too didn't resolve and send email from Database mail.
Any help/ guidance would be greatly appreciated or if you had faced this how have you resolved it.
Hi the solution is as follows
Create a dbmail profile
server name: smtp.sendgrid.net
port : 25
SMTP Authentication
Basic Auth
User name: apikey
Password: : {the api-key for your sendgrid account}
Thats it. Send a test email.
If it still doesn't work, if you are on AWS EC2 ensure that security group allows outbound port:25
Here is the link from sendgrid about apikey authentication.
https://docs.sendgrid.com/for-developers/sending-email/upgrade-your-authentication-method-to-api-keys
I have a new site created and planning to host it on Netlify, I am thinking of creating a form to collect customer Testimonials from the site and email me on my company email address I have read that Netlify does not provide email service. Got inputs like using Zapier integration or free mail service like Zoho.
What other options do I have to make this work? Anyone using Netlify and got email forwarding activated?
You can consider using any SMTP email service and just send the email using PHP or any other code way.
For example here is how to send emails with PHP using Gmail SMTP.
https://pepipost.com/tutorials/send-an-email-via-gmail-smtp-server-using-php/
Or how to use the AWS SMTP and PHP.
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-php.html
Is it possible to set up Auto Mail Forwarding using Outlook Mail Rest API for Outlook 365 mailbox?
I need a way to do using a .Net console app.
Looking at the API documentation it only mentions how to forward a mail message, but not auto forwarding.
I have a client hosted with Godaddy and I am willing to change to Heroku.
I have tried installing Heroku Add-ons but that is not what I am looking for.
How can I create custom accounts for sending and receiving emails with a custom account (client#site.com)
I don't want to send mails via node.js nor PHP.
Thank you!
Heroku will only host your HTTP website. You need another provider for emails.
GSuite will give this to you for example.
By setting up your DNS records properly, you will then be able to tell your domain name to point to Heroku for HTTP requests, and to your emails provider for receiving those messages.
I have created an SES Account and I have verifed my domain - easy as the A record is already with AWS route53. I now need to send emails. Note: I have also created an smtp user account and have the keys.
Question - can I use any (lets say PHP as I like PHP) php script to send emails via SES?
I have found a couple of sites that appear to have scripts for SES like http://www.orderingdisorder.com/aws/ses/ but wanted to ask if now my domain is verified and I have user/keys etc is SES really just an SMTP gateway and I can use any (working) script to send emails via this interface?
thx
You can use their SMTP gateway or send emails via the AWS SDK for PHP programmatically. Just download the SDK, include it in your PHP file and you're good to go.
http://aws.amazon.com/about-aws/whats-new/2011/12/13/amazon-simple-email-service-gets-simpler-with-smtp/
http://docs.aws.amazon.com/AWSSDKforPHP/latest/#i=AmazonSES
http://aws.amazon.com/sdkforphp/