Skip to Content Skip to Menu

How can I add SMTP Headers to any emails sent out by CB?

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 4 months ago #266769 by timstohr
Hey Question in header.

Since I cannot use CMandrill API for CB emails I would like to use SMTP headers in CB emails.

Is that possible?

I need it as well for CB plugins like GJ.

Where can I find it for GJ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #266804 by krileon
CB will use SMTP if you configure SMTP within Joomlas global configuration. GJ uses CBs mailer API. All our integrations do that send emails.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 4 months ago #266822 by timstohr
Hey Kyle,

I am using Mandrill and a template that are put around the content of the joomla emails. The problem is now that Mandrill wants special SMTP header to call in the template (thus putting a template around the content).

For all other extensions I am using CMandrill which actually transforms the email into an API call to Mandrill. But it doesnt work for CB as CB has its own mail API.

Is it possible to add an SMTP header to anything that goes out from CB? Or if not, where can I change the email that CB/GJ sends out in order to make it prettier? I am already using the HTML of the welcome email, the only problem now are the GJ emails.

Feature idea: if we could add an HTML template into CB Core, so that CB core (and plugins) send out the email with a template around the content... That would be awesome as it will be "a one size fits all plugin" solution.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #266897 by krileon
Even if you specified the header it's probably not going to work. CMandrill is not acting on CBs triggers. So it won't do anything for CB.

Is it possible to add an SMTP header to anything that goes out from CB? Or if not, where can I change the email that CB/GJ sends out in order to make it prettier? I am already using the HTML of the welcome email, the only problem now are the GJ emails.

Do you mean custom request header or custom HTML header in the email? For custom request header no it's not possible unless you use a new plugin acting on CBs mailer triggers to call the addCustomHeader on the mailer object. For custom HTML header yes it's possible if you modify the email language string and specify the entire HTML structure for the email.

Feature idea: if we could add an HTML template into CB Core, so that CB core (and plugins) send out the email with a template around the content... That would be awesome as it will be "a one size fits all plugin" solution.

CB Notifications will bring features like templates, scheduling, batching, etc.. for emails in addition to built in PMS and on site notifications. I've no idea when I'll be starting this project though. This may just end up being core API though, I don't know yet. Regardless the features you're wanting are planned.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago #266907 by timstohr
Hey Kyle,

That plan sounds good since it will majorly simplify the work that I am currently doing now (I need it now, so am doing it the long and complicated way).

I need to add custom HTML headers.

These HTML Headers will tell Mandrill (not going through CMandrill plugin but simple SMTP) to take template XYZ and add the content of email from CB into XYZ (here is the setup guide for Sendgrid, a service that I have rejected as it is too expensive but it works the same: sendgrid.com/templates/setup_guide ).

Where can I find the email strings?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #266924 by krileon
All the GJ emails are language strings within its language files at the below location.

components/com_comprofiler/plugin/language/cbgroupjiveen-gb/language.php
components/com_comprofiler/plugin/language/cbgroupjiveen-gb/integrations_language.php

If the above files don't exist then ensure the English language plugin included with GJ is installed.

You'll have to specify the entire HTML as if you're writing an HTML page for CBs API to use your HTML structure instead of its own.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum