Sitecore ECM : Message preview gives wrong output - ssl

I have a Multi Site system, version 6.5 with ECM 1.3. E-mails are sent using SSL/TLS over port 587, all connections are running and tested and I am able to send test-mails.
When creating a new Newsletter in my ECM and then going to the Message Preview, I do not see the (empty) layout of the newsletter, but instead Sitecore displays the home page of the website itsself?! This issue occurs for every template except the HTML Message. When sending the Newsletter as a test mail, I receive an e-mail with more or less the layout of the website, as shown in the preview.
Any ideas?
Best regards,
Hessel

Make sure that the Newsletter Branch (i.e.$name under Branches >> Branch Newsletter) and Email Message Root (i.e. Email Message root under Branches >> Branch Newsletter >> $name) have been assigned the Custom Newsletter Template.
Check Email Message Root by clicking this on the Ribbon (You might already know this but .....)
Select the Email Message Root in the tree.
In the Ribbon click Presentation >> Layout >> Details and the Layout Details dialog box should give you the info.
Simultaneously also check the content and presentation binding is in place and relevant renderings like Set Page Title, Basic Newsletter Title&Text and Basic Newsletter Header are in place.
Check in Custom Newsletter branch template the layout details of $name item.
Make sure for the default device your Custom Newsletter Layout is set and also these type of controls are set in their respective placeholders.
Process Personalization Tokens (sublayout) & Custom NewsLetter TitleAndText in email-content (placeholder).
Set Page Title in Html-title(placeholder).
Once these settings are configured correctly, try creating a new item from that branch and hopefully the preview should work.
Let us know how you get along and if the above was of any help.

In some cases this might be a security issue, when we try to preview a message for recipient (! not the context user !) who doesn’t have permission to read the message.
Try to set CheckReceiverRights setting value to true in Sitecore.EmailCampaign.config file. In case, it is security issue, you will be alerted in the preview window.

Related

B2C Hide the Social Intro

I updated our version of self asserted to 2.1.2 to address the new password reset flow. Doing this has added the social_intro to our custom log in page.
I have added the local_intro_generic to the page and it works fine, However the social_intro still show up. We are not allowing for any social login and I don't want it displayed. I can edit it... but I don't see a way to hide it either in the documents or any other search.
You can edit the html file that is getting referenced for that page. Hide the divs that you don't need after checking the class names of the divs using inspect element.

OfficeJS Body.setAsync will break inline image on the email

Client:
Microsoft Outlook for Mac
Build 16.26 / 16.27
Issue:
After calling Body.setAsync with html body that contains inline image. Outlook client will not send the underlying image with the email. As a result, recipient of the email won't be able to see the image.
Repro steps:
1. Install Salesforce Outlook Debug Tools https://sfdc-addin-tools.herokuapp.com/manifest
2. Go to New Email
3. In compose window, launch debug tools addin
4. At the top, click "Interactive tests" button
5. Insert a picture from your local directory
6. Click "Get body" on the addin
7. Click "Set body" on the addin
8. Send the email (preferably gmail, or email account outside your local Outlook account)
9. (Recipient mailbox) Inline image is not rendered
Notes:
1. Get body and Set (the same) body will append extra style attribute to the <img> tag
Original:
<img width=200 height=255
style='width:2.0833in;height:2.6562in' id="Picture 1"
src="local/image001.gif">
After set:
<img width=200 height=255
style='width:2.0833in;height:2.6562in' id="Picture 1"
src="local/image001.gif"
style='height:2.656in;width:2.083in'>
Email that has an extra style attribute doesn't have the embedded image, and src attribute refers to original location src="/Users/bob/pictures/etc/" as oppose to src="cid:image001" in the encoded message.
Seeing the same email on the sent folder will be just fine. My thought is its referencing the image from local directory.
Question for MSFT team:
1. Any workaround? Or timeline to have this fixed?
We are aware of this issue and are working on getting this fixed. We don't have a timeline yet, but we'll update this post as soon as we do.

How do I connect my appixia app to my prestashop contact page?

I've added a contact button on the title bar but I can't get my contact form to display. Has anyone done this?
First of all, the contact button Module field should point to a new Activity module like VerticalContainerActivity which should contain an HtmlView module in its body. This HtmlView displays your contact page - put the address in its ContentUrl. Most of these steps are identical to what you'll find in this tutorial.
You can see an example of this in the diamonds sample app. Create a new app from the diamond store starting point and see how the contact button is implemented there.
The second important point to remember is that you shouldn't use regular store URLs in your Appixia app. When the user sees them, they would see your Prestashop theme with all the navigation and this will be very confusing inside a mobile app. Instead, make a mobile friendly version of your contact page which doesn't use your Prestashop theme and only shows the contact info content.
Using the Prestashop Contact Form in your Appixia app:
I'm not sure this is a 100% good idea in terms of usability. I don't recommend using a web form for contact in a mobile app.
A mobile phone is a communication device. It is has special integration for making phone calls and sending emails - I really recommend you use these methods instead. Look at the HTML source of this example to see how simple it is to integrate (it's just a link in your HTML).
In order to encourage your users to contact, you need to ask them for as little info as possible. Your website contact form makes your users type in their email address. If they email you directly through their device (with a mailto: link), their correct email will be filled automatically. Same with making a call, when they tap on the link, the number will be dialed automatically for them.
If you really insist on implementing the Prestashop contact form, this will require some Prestashop php games. You should find the contact form controller in the Prestashop source and create the same form (in php or hardcoded HTML) without your website theme. It will be a little annoying because after we submit the form, we also need to make sure the confirmation message is also displayed without your website theme.

Avoid Sending Email when User Post New Listing

I am new to OSClass, right now when user publish a listing an email has been sent to user's email id, in which user can activate that listing, admin can also activate that listing.
But I want that only admin should have control to activate the listing, so if somehow I can control that if I skip that step of sending email to user's email account.
Is there any solution?
Regards.
You can remove the email sending removing the hooks.
Edit your oc-load.php file and add this lines:
osc_remove_hook('hook_email_new_item_non_register_user', 'fn_email_new_item_non_register_user');
osc_remove_hook('hook_email_item_validation_non_register_user', 'fn_email_item_validation_non_register_user');
osc_remove_hook('hook_email_item_validation', 'fn_email_item_validation');
If you doubts of hooks you can take a look at http://doc.osclass.org/Hooks
you can create a plugin for this and this way you don't modify the osclass core files, you can check how here http://doc.osclass.org/How_to_create_a_plugin

displaying poll data on ExpressionEngine site

I'm using the eeHarbor polls module and need help with the following:
As the code is currently configured, the poll question displays on my homepage. If the user either selects an option and casts a vote, or clicks on the "view results" option, the results are then displayed within the same area on the homepage (replacing the poll questions and options).
I would like to have the results (either after a vote is cast or after the user selects "view results") displayed on a different page, where I can add related content. Does anyone know how I may edit the poll module's parameters to make this happen?
Also, the poll module creates all new polls with 2 possible voting options/answers. There is a link to click that should allow the admin to "add options" or "add other option" but clicking this link doesn't dork, leaving me with only 2 options for every poll.
I have uninstalled and reinstalled the module with no change.
Any ideas why this is happening and how it may be resolved?
Check the FAQ page here: http://eeharbor.com/polls/faq
Can I change the return URL for a given poll?
Yes, as of version 1.4 you can add a hidden form element with the name of "return_url" to specify the url you would like a user to be sent to after submitting a poll.
<input type="hidden" name="return_url" value="" />