ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
1905
|
Sat Aug 19 15:47:52 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | | Re: Conditional E-Mail Attributes |
Stefan Ritt wrote: | If I try that little configuration file:
[global]
port = 8080
password file = passwd
smtp host = your.smpt.host
[demo]
Theme = default
Comment = General linux tips & tricks
Attributes = Author, Type, Category, Subject, Email Type
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Options Email Type = plain{1}, html{2}
{1}Email encoding = 1
{2}Email encoding = 2
then the email encoding changes from plain to HTML depending on the conditional attribute Email Type. Maybe you misunderstood the concept of conditional attributes. In the above config the attribute Email Type determines the condition {1} or {2}, which leads then to different values of the email encoding. But it's important to have the line
Options Email Type = plain{1}, html{2}
in order to set a condition. |
I use conditional attributes to select the fields I would like displayed on a form or page.
I understand how they work but wish to set the Email Encoding automatically depending on which item they choose from a drop down list (ie. which form they are using)
For example, if they choose 'Fred Bloggs' from the conditional drop down attribute 'Name' it will set the page so that only 'Fred Bloggs' required attributes are viewable. I wish to send this page in Plain text when submitted.
If 'Fred Jones' is chosen then only attributes applicable to 'Fred Jones' are shown. When he submits his entry then I need the email to be sent in HTML.
The email encoding option would have to be set under either Fred Bloggs{1} or Fred Jones{2} conditions.
Attributes = Name,
Options Name = Fred Bloggs{1}, Fred Jones{2}
{1}Email encoding = 1
{1}Email All = sed@frd.fg
{2}Email encoding = 2
{2}Email All = sdf@fgd.hg
I can get options like 'Email All = sed@frd.fg' to change to another email address when used as above but not Email formatting.
I have all the other conditional attributes working fine otherwise but would really like to be able to add this option.
Thanks for your help. |
1907
|
Sat Aug 19 20:12:42 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | | Re: Conditional E-Mail Attributes |
Stefan Ritt wrote: |
Grant Jeffcote wrote: |
Stefan Ritt wrote: | If I try that little configuration file:
[global]
port = 8080
password file = passwd
smtp host = your.smpt.host
[demo]
Theme = default
Comment = General linux tips & tricks
Attributes = Author, Type, Category, Subject, Email Type
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Options Email Type = plain{1}, html{2}
{1}Email encoding = 1
{2}Email encoding = 2
then the email encoding changes from plain to HTML depending on the conditional attribute Email Type. Maybe you misunderstood the concept of conditional attributes. In the above config the attribute Email Type determines the condition {1} or {2}, which leads then to different values of the email encoding. But it's important to have the line
Options Email Type = plain{1}, html{2}
in order to set a condition. |
I use conditional attributes to select the fields I would like displayed on a form or page.
I understand how they work but wish to set the Email Encoding automatically depending on which item they choose from a drop down list (ie. which form they are using)
For example, if they choose 'Fred Bloggs' from the conditional drop down attribute 'Name' it will set the page so that only 'Fred Bloggs' required attributes are viewable. I wish to send this page in Plain text when submitted.
If 'Fred Jones' is chosen then only attributes applicable to 'Fred Jones' are shown. When he submits his entry then I need the email to be sent in HTML.
The email encoding option would have to be set under either Fred Bloggs{1} or Fred Jones{2} conditions.
Attributes = Name,
Options Name = Fred Bloggs{1}, Fred Jones{2}
{1}Email encoding = 1
{1}Email All = sed@frd.fg
{2}Email encoding = 2
{2}Email All = sdf@fgd.hg
I can get options like 'Email All = sed@frd.fg' to change to another email address when used as above but not Email formatting.
I have all the other conditional attributes working fine otherwise but would really like to be able to add this option.
Thanks for your help. |
Can you please try the above configuration example, and can you please tell me exactly which version of elog you are using? If I try that example with ELOG V2.6.2-1714, it works fine (it DOES change the email encoding). |
My version shows V2.6.2-1699.
I noticed you have 1714, is that the latest binary or your compiled CVS release?
Thx |
2006
|
Thu Oct 19 07:00:57 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | 2.5.2 | Re: can attrinute fields contain more that one line | > > Is there any way to configure elog so that attribute fields can be edited
> > on more than line like the 'text' field?
> >
> > (This would be useful so that attributes could contain larger portions of
> > text including line breaks)
>
> No, but this request is already on the wishlist
> (http://midas.psi.ch/elog/wishlist.html) since some time. I added your vote.
Hi Stefan, could you add my vote for this feature too please?
Many thx |
2071
|
Sat Nov 11 06:56:16 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file | Stefan, this is a great idea (thanks An).
I can't seem to get this working when Elogd is started as a service though?
Starting elogd (-x) manually works fine and with the -v switch I can see it is operating correctly but obviously the service option is preferred.
The service ("D:\ELOG\elogd.exe" -x -D -c "D:\ELOG\elogd.cfg") is starting correctly using the -x switch (as I use the shell command for other elog options) but it doesn't seem to send the mail.
Is this a 'feature' ;o)
Thx
Stefan Ritt wrote: |
An Thai wrote: | I tested many times and find out the problem.
The first opening CMD and running "elogd -v -x". It works perfektly.
Close the CMD: It stops to work.
From this time point it never works again even I try to re-open CMD and run "elogd -v -x"
The computer must be rebooted to get it works. (The CMD for running elogd -x must be always opened !!!) |
You probably run two servers in parallel. If you install the standard windows package, an elogd service is created and started. If you open a command window and run elogd manually, you have it running twice, and you never know to which instance your browser connects to. So first start the server with net stop elogd and then open the command window and start elogd manually. |
|
2073
|
Sat Nov 11 18:48:48 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file | Thanks Stefan,
I understand that and the registry entry that I use (for the service) is what I had quoted below.
The problem I have is that when Elog is started as a service using the -x switch then the shell command using An's mail list suggestion does not work? Starting the elogd daemon manually (ie using the command prompt) does work.
I have other features within my configuration which use the 'execute new $shell' option which works perfectly so I know that the -x switch is functional within the service.
BR Grant
Stefan Ritt wrote: |
Grant Jeffcote wrote: | I can't seem to get this working when Elogd is started as a service though?
Starting elogd (-x) manually works fine and with the -v switch I can see it is operating correctly but obviously the service option is preferred.
The service ("D:\ELOG\elogd.exe" -x -D -c "D:\ELOG\elogd.cfg") is starting correctly using the -x switch (as I use the shell command for other elog options) but it doesn't seem to send the mail.
Is this a 'feature' ;o) |
Sure 
But seriously, elogd cannot be started as a service under windows by opening a command window and executing above command line. Under windows, it has to be installed and run as a service, which is usually done by the installer. To change it, you do that by selecting My Computer, then right mouse click and Manage, then you select Serviced and Applications, then Services, then you will see the elogd service. A double click on it opens the corresponding properties, where you will find the command line, usually
"C:\Program Files\ELOG\elogd.exe" -D -c "C:\Program Files\ELOG\elogd.cfg"
Here you have to change the command line parameters to add the -x flag. Then you stop and restart the service. |
|
2075
|
Sat Nov 11 21:31:33 2006 |
| Grant Jeffcote | grant@jeffcote.org | Question | Windows | 2.6.2.1723 | Re: Conditional Email Notification by a text file | All paths are absolute and file permissions set to 'everyone'. 'Preset text' results in the contents of the text file being shown so access doesn't seem to be the problem here. Can you reproduce this?
Thx & rgrds
Stefan Ritt wrote: |
Grant Jeffcote wrote: | The problem I have is that when Elog is started as a service using the -x switch then the shell command using An's mail list suggestion does not work? Starting the elogd daemon manually (ie using the command prompt) does work. |
When elogd runs as a service, it needs all paths to be absolute, like having the full c:\dir\subdrir\.... Do you have this? What about file access permission? You can try to do a Preset text = <file> with your email list, to see if elogd can actually access this file at all. |
|
2092
|
Sun Nov 26 22:15:34 2006 |
| Grant Jeffcote | grant@jeffcote.org | Request | Windows | | Tool Tips | Hi Stefan,
Is there a way to add a 'Tool Tips' to individual 'Options' similar to that currently available for Attributes? I have several checkboxes under an attribute for predefined email groups and would like to see if I can make the recipient list viewable via a mouse hover using the 'Tool tip' feature.
If not possible can it be added to the wishlist?
Many thx. |
2095
|
Tue Nov 28 10:25:08 2006 |
| Grant Jeffcote | grant@jeffcote.org | Request | Windows | | Re: Tool Tips |
Stefan Ritt wrote: |
Grant Jeffcote wrote: | Hi Stefan,
Is there a way to add a 'Tool Tips' to individual 'Options' similar to that currently available for Attributes? I have several checkboxes under an attribute for predefined email groups and would like to see if I can make the recipient list viewable via a mouse hover using the 'Tool tip' feature.
If not possible can it be added to the wishlist? |
Ok, I implemented this. It is in revision 1760 and will be contained in the next release. |
That's really great, thank you so much.
What will the configuration line be? |
|