You are here:   Support > User Forum
Register   |  Login

Invenmanager User Forum

Minimize
Email Notification CSS Not Working
Last Post 20 Aug 2010 03:01 PM by Inven Manager. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Dino Forbes
New Member
New Member
Posts:3

--
23 Jul 2010 02:08 AM  
Hi,

I am sorry if this has been answered before in a previous post. I did a search and couldn't find any other related posts.

I am currently using:

Events Calendar 3.1.1
DNN 5.0.1.2

My question is the template I use for the email notifications I have added at the top:

<head><STYLE type="text/css">
.regCap {width:120px;}
.regContent {}
.regRow {padding-top:5px;width:750px;border-bottom:1px dotted;}
.regTotalFees {text-align:right;padding-top:10px;width:750px;border-bottom:2px double;font-weight:bold;}
.regAdditionalFees {text-align:right;padding-top:10px;width:750px;border-bottom:1px dotted;}
.regName {width:170px;}
.regPhone {width:130px;}
.regEmail {width:250px;}
.regRegType {width:200px;text-align:right;}
.regTable {width:750px;border-bottom:1px dotted;}
</STYLE></head>

and then the rest of my email template as per usual.

This doesn't appear to be working correctly,the email returns with the css classes above as plain text, the <head> and <style> tags don't show though.

I had a look at the manual but it doesn't give CSS template examples for the email notifications just for the Views etc

Is there a way to do this that I am missing?

Also I made sure that the HTML setting was set.

Thanks in advanced.

Regards,

Dino
Inven Manager
Senior Member
Senior Member
Posts:6765
Avatar

--
24 Jul 2010 12:07 AM  
Dino,

Can you try to view email in another software? or does your email support html format?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dino Forbes
New Member
New Member
Posts:3

--
27 Jul 2010 12:01 AM  
Thanks for you reply

My email client is outlook 2007 and normal html emails look fine?

So are you saying that the email notification template I have described has been correctly formatted?

My question is does the email notification sent from Event Calendar support having CSS styles directly used within the template as per my example?

Or are the email notifications have to have the styles set up somewhere else?

Thanks,

Dino

Inven Manager
Senior Member
Senior Member
Posts:6765
Avatar

--
27 Jul 2010 05:35 AM  
Dino,

The emails sent out are 100% based on the template you setup. So, what you input in the template, what you should get from email client.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Dino Forbes
New Member
New Member
Posts:3

--
19 Aug 2010 07:40 PM  
G'day,

I am not sure if I have explained myself properly, I have tried several attempts at fixing my template so that the CSS styles are working.

So basically my Email notification is for a Reminder event:

<head><STYLE type="text/css">
.regCap {width:120px;}
.regContent {}
.regRow {padding-top:5px;width:750px;border-bottom:1px dotted;}
.regTotalFees {text-align:right;padding-top:10px;width:750px;border-bottom:2px double;font-weight:bold;}
.regAdditionalFees {text-align:right;padding-top:10px;width:750px;border-bottom:1px dotted;}
.regName {width:170px;}
.regPhone {width:130px;}
.regEmail {width:250px;}
.regRegType {width:200px;text-align:right;}
.regTable {width:750px;border-bottom:1px dotted;}
</STYLE></head>
<body>Dear [User:DisplayName]
<br/><br/>
This is a reminder for the following event:
<br>
<div style="font-weight: bold;">[EVENTTITLE]</div>
[EVENTDATE]
<br/>
<br/>
If you need to be reminded closer to the event or you would like to be notified of any future changes to the event, you can easily do this by going to the Sun Bae calendar, clicking on the event and add your email address.
<br/>
For more information, please visit the website:<br/>
[EVENTLINK]
<br/><br/>
Support<br/>
[Portal:PortalName]
<br/><br/>
(Note: This is an automated email and you cannot reply to it. Further enquiries must be directed to your Club Instructor. Contact details for your Club Instructor are available in the "About Instructors" area.)
</body>
For more information, please visit the website:<br/>
[EVENTLINK]
<br/><br/>
Thank you.<br/>
[Portal:PortalName]
</body>

The Output I get on the email client is:

.regCap {width:120px;}
.regContent {}
.regRow {padding-top:5px;width:750px;border-bottom:1px dotted;}
.regTotalFees {text-align:right;padding-top:10px;width:750px;border-bottom:2px double;font-weight:bold;}
.regAdditionalFees {text-align:right;padding-top:10px;width:750px;border-bottom:1px dotted;}
.regName {width:170px;}
.regPhone {width:130px;}
.regEmail {width:250px;}
.regRegType {width:200px;text-align:right;}
.regTable {width:750px;border-bottom:1px dotted;}

Dear sun bae

This is a reminder for the following event:
Cancelled class - Kenmore, Newmarket & Jamboree Hts.

23/07/2010 5:30 PM - 8:00 PM

If you need to be reminded closer to the event or you would like to be notified of any future changes to the event, you can easily do this by going to the Sun Bae calendar, clicking on the event and add your email address.


For more information, please visit the website:


Thank you.

As you can see the style Classes are outputed as plain text in the email output, so obviously the styles are not applied to the email.

I have tried different ways to get the output correcly but no luck.


Could you please point me in the right direction so that the email output does not have the CSS style classes in plain text.

I hope this clears any confusion with my question Thank you.


Regards,

Dino

Inven Manager
Senior Member
Senior Member
Posts:6765
Avatar

--
20 Aug 2010 03:01 PM  
Dino,

Sorry for the confusion...

For Email Reminders are always sent out as plain text. This is to make it work on all types of email browsers.
So the styles may not work.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
You are not authorized to post a reply.

Active Forums 4.1