This project is read-only.

Newsletter Widget Troubles...

Topics: Controls
Oct 3, 2011 at 6:58 AM

Hi guys,

I've got BE 2.5 installed locally but I'm having trouble with the newsletter widget.

I've set the email settings in the admin section, and when I "test" the settings it sends me the email successfully.

So I added the Newsletter Signup widget to my site, which is capturing the email addresses and putting them in the AppData/Newsletter.xml file. So far so good.

Now what? I'm not sure how to get it to send the notification when a new post is made? My understanding is that BE does this automatically, yet I'm not receiving any notifications.

What am I missing? Are there additional settings to configure somewhere?

Any help much appreciated.



Oct 3, 2011 at 7:54 AM
Edited Oct 24, 2011 at 6:30 PM

Leave the Widgets.cs page as is

Java Blog

Oct 3, 2011 at 12:48 PM

It defaults to "false".  Then it looks at a few conditions.  There's 2 possible conditions that will set it to "true".  It must be that neither of those 2 conditions are being met, which is why it was not sending out the newsletter.  You can look at that, maybe set a breakpoint to see why those conditions were not matching.

The 1st condition is that you are creating a new post, and it is "visible to the public" (IsVisibleToPublic).  Visible to the public means that it's (a) published, and (b) not future-dated.

The 2nd condition is that you are updating an existing post, it is visible to the public, and it was previously not visible to the public.  This generally happens if you initially create a non-published post (to preview it, edit it, etc), and then later you publish it.  It's this type of case where this 2nd condition is true.

Oct 3, 2011 at 3:56 PM

Leaving the Widgets.cs page alone fixes it some how.  I copied and pasted this version:


into my widget.ascs.cs  file  everything works now!!!


Newsletters are sent for both Page/Posts  plus shows description too!!


Don't know why it didn't worked before but now it does.

Oct 3, 2011 at 3:58 PM

I made a custom Newsletter Template for the Newsletter take a look at this:

Oct 3, 2011 at 5:12 PM

Also while on the topic of Newsletter.


How to edit the input box to over ride the

Hard coded:  style="width:98%;"    with CSS?

<input name="ctl00$widgetContainer20cedce0be23435594ba94f57be355d5$20cedce0be23435594ba94f57be355d5$txtEmail" type="text" id="ctl00_widgetContainer20cedce0be23435594ba94f57be355d5_20cedce0be23435594ba94f57be355d5_txtEmail" style="width:98%;" />


Need to make the input box smaller, but how with css?

Don't won't to hard code the widget itself.

Also for future releases is there a way just to soft code it with a class? instead of having it hardcoded.


Screenshot on what I am talking about:

Oct 3, 2011 at 5:44 PM

What if you put this style ?

#ctl00_widgetContainer20cedce0be23435594ba94f57be355d5_20cedce0be23435594ba94f57be355d5_txtEmail {width:50% !important;}

Oct 3, 2011 at 7:05 PM

Thanks for your replies guys...

I looked at the widget.acsx.cs file and noticed the reference to the error log... duh!

Ok, so I checked the error log (AppData/logger.txt) and the error receive is the...

Date: 10/3/2011 10:56:26 AM
Contents Below
Error sending email in SendMailMessage:  Mailbox unavailable. The server response was: Authentication is required for relay

Ok, so I understand what the error is telling me, what I don't understand is that when I "test" the email settings in the admin section, it works, but when publishing a post, it doesn't?

Are there multiple settings somewhere in BE that I'm missing?

Not sure how to fix it?

Any ideas please?

Thank you,


Oct 3, 2011 at 11:36 PM
dmichaud80 wrote:

What if you put this style ?

#ctl00_widgetContainer20cedce0be23435594ba94f57be355d5_20cedce0be23435594ba94f57be355d5_txtEmail {width:50% !important;}

That works!!



Oct 4, 2011 at 1:15 PM
Edited Oct 24, 2011 at 7:07 PM

Well the #ctl00_widgetContainer20cedce0be23435594ba94f57be355d5_20cedce0be23435594ba94f57be355d5_txtEmail

is site specific, won't work on other sites.

But the below CSS does work through:


#newsletterform input[type="text"] {
 width:92% !important;