[Xerte] Re: Example email headers for Xerte install please. Anyone?

Paul Swanson Paul.Swanson at harlandfs.com
Wed Mar 7 17:19:39 GMT 2012


You don't need to worry about the first block of code. XOT is handling
that from the entry for 'headers' in the database via this line:
 
$xerte_toolkits_site->headers = str_replace("*", "\r\n",
$row['headers']);
 
This:
 
MIME-Version:1.0*Content-type: text/html; charset=utf-8*From:
YourFromAddress at yourDomain.com*Reply-To: YourFromAddress at yourDomain.com
should go into the XOT sites table In the headers column, or in the
config.php file, where you are supposed to enter the email headers value
(replacing 'YourFromAddress at example.com" with an appropriate email
address). Someone with a working XOT install should be able to tell you
exactly where that goes. I'm just inferring here from the XOT code, as I
don't have XOT installed.
 
Paul
 
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Oliver Haslam
Sent: Wednesday, March 07, 2012 9:00 AM
To: Xerte discussion list
Subject: [Xerte] Re: Example email headers for Xerte install please.
Anyone?
 
Thank you, Paul. I really appreciate your help - and Tom, Pat, and
everyone else who is trying to solve this problem.
 
I'm afraid I'm really not a PHP programmer at all: I muddle through and
paste bits of code in the places people tell me and it either works like
magic or it doesn't!  I'm not getting any support with from our
technical staff here as they won't support anything to do with PHP L
But a few of us are keen to get XOT working on our own as we see how
much potential it has for learning - but we are having to do it quietly
and unsupported. All  I really want is to get the feedback form to send
emails to me (in whatever way we can) as it seems like a really handy
way for our academic staff and students to communicate how they are
using XOT and to let me know any problems they encounter.
 
So with that in mind, where should I put the code you've provided?
 
Where does this need to be?  :
 
// define headers
        $headers = "MIME-Version:1.0\r\n";
        $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
        $headers .= "From: MyFromAddress at example.com\r\nReply-To:
MyFromAddress at example.com \r\n";
        $headers .= 'X-Mailer: PHP/' . phpversion();
 
 
 
And where does this need to be?  :
 
 
MIME-Version:1.0*Content-type: text/html; charset=utf-8*From:
YourFromAddress at yourDomain.com*Reply-To: YourFromAddress at yourDomain.com
 
 
Thanks again!
 
_______________________________
 
Oliver Haslam
Course Developer (Technologist)
Applied Sciences & Allied Health Professions
 
Technology Enhanced Learning
University of the West of England
_______________________________
T: 0117 32 88215
 
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
Sent: 07 March 2012 16:20
To: Xerte discussion list
Subject: [Xerte] Re: Example email headers for Xerte install please.
Anyone?
 
I don't have XOT installed, but I do a fair amount of PHP programming.
When I send HTML mail via PHP, I use the following:
 
        // define headers
        $headers = "MIME-Version:1.0\r\n";
        $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
        $headers .= "From: MyFromAddress at example.com\r\nReply-To:
MyFromAddress at example.com \r\n";
        $headers .= 'X-Mailer: PHP/' . phpversion();
 
It appears from the XOT code that your headers information is stored in
a database, and from the discussion thread, it seems to me that your
database doesn't have an entry for headers. You might give the following
a try:
 
MIME-Version:1.0*Content-type: text/html; charset=utf-8*From:
YourFromAddress at yourDomain.com*Reply-To: YourFromAddress at yourDomain.com
 
I would skip the X-Mailer parameter. It's not required and you would
have to hard-code the PHP version instead of using the PHP function
call.
 
Cheers,
Paul
 
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Oliver Haslam
Sent: Wednesday, March 07, 2012 3:41 AM
To: Xerte discussion list
Subject: [Xerte] Re: Example email headers for Xerte install please.
Anyone?
 
Thanks for your help Tom. Still can't get it work here, though. 
 
I've attached a screenshot of the contents of my management.php and
copied what I have in config.php and the error logs below.
 
This is what is now in config.php: 
 
  /** 
     * Email settings
     */
 
    $xerte_toolkits_site->site_email_account =
$row['site_email_account'];
    $xerte_toolkits_site->headers = str_replace("*", "\r\n",
$row['headers']);
    $xerte_toolkits_site->email_to_add_to_username =
$row['email_to_add_to_username'];
 
    /** 
     * RSS Proxy settings
     */
 
    $xerte_toolkits_site->proxy1 = $row['proxy1'];
    $xerte_toolkits_site->port1 = $row['port1'];
 
    /** 
     * Set up the feedback list from the feedback page
     */
 
    $xerte_toolkits_site->feedback_list = $row['feedback_list'];
 
 
 
 
And this is what I have in the error log after submitting something in
the feedback form on the logged in page:
 
mail() on [D:\shared\xerte\website_code\php\error_library.php:185]: To:
simon2.carter at uwe.ac.uk <mailto:simon2.carter at uwe.ac.uk>  -- Headers:
 
 
 
_______________________________
 
Oliver Haslam
Course Developer (Technologist)
Applied Sciences & Allied Health Professions
 
Technology Enhanced Learning
University of the West of England
_______________________________
T: 0117 32 88215
 
 
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 06 March 2012 20:40
To: Xerte discussion list
Subject: [Xerte] Re: Example email headers for Xerte install please.
Anyone?
 
Had a look, and it's complicated...
 
1. I had to fix config.php, the line where the headers are set:
Change
 
    $xerte_toolkits_site->headers = $row['headers'];
 
in
 
    $xerte_toolkits_site->headers = str_replace("*", "\r\n",
$row['headers']); (Line 194 in my installation)
 
2. The list of people who have to receive the feedback should be set in
the feedback list (Last item of the Site settings) 3. The site email
account is as of yet unclear to me 4. An example of the headers is
 
Content-Type: text/html; charset=ISO-8859-1*From: XOT <reijnders at tor.nl
<mailto:reijnders at tor.nl> >
 
5. The site email to add to username is the email domain  name that is
added to a xot username in the case of peer to peer feedback of a user
to another user.
 
This is working for me.
 
Regards,
 
Tom
 
Op 6-3-2012 17:24, Oliver Haslam schreef:
> Thanks Tom. Does anyone else have 'email header' info already written
in the mean time?
> 
> Oli
> 
> _______________________________
> 
> Oliver Haslam
> Course Developer (Technologist)
> Applied Sciences&  Allied Health Professions
> 
> Technology Enhanced Learning
> University of the West of England
> _______________________________
> T: 0117 32 88215
> 
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk 
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom 
> Reijnders
> Sent: 06 March 2012 12:16
> To: Xerte discussion list
> Subject: [Xerte] Re: Example email headers for Xerte install please.
Anyone?
> 
> I haven't used it, but I'll give it a try and let you know.
> Mind you, I don't have time to do this before Thursday, so I invite
someone else with a working configuration to answer before that.
> 
> Tom
> Op 6-3-2012 12:55, Oliver Haslam schreef:
>> Can anyone share with me an example of what to write in the email
headers field when they installed Xerte on a web server?
>> 
>> I need an example of what to put where it says the following in
management.php>   Site>   Email:
>> 
>> "The site email headers is (use the * symbol to represent a new
line)"
>> 
>> Presumably this is the email TO, FROM, SUBJECT information etc. But I
have no idea what format it should be in.
>> 
>> Thanks
>> 
>> Oli
>> 
>> _______________________________
>> 
>> Oliver Haslam
>> Course Developer (Technologist)
>> Applied Sciences&   Allied Health Professions
>> 
>> Technology Enhanced Learning
>> University of the West of England
>> _______________________________
>> T: 0117 32 88215
>> 
>> 
>> -----Original Message-----
>> From: xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat 
>> Lockley
>> Sent: 06 March 2012 11:26
>> To: Xerte discussion list
>> Subject: [Xerte] Re: feedback form on logged in page
>> 
>> Been ages since I've done it, you might need to get someone to share 
>> their install setting
>> 
>> On Tue, Mar 6, 2012 at 10:30 AM, Oliver
Haslam<Oliver.Haslam at uwe.ac.uk <mailto:Oliver.Haslam at uwe.ac.uk> >
wrote:
>>> What should I put in the email headers field?
>>> 
>>> _______________________________
>>> 
>>> Oliver Haslam
>>> Course Developer (Technologist)
>>> Applied Sciences&   Allied Health Professions
>>> 
>>> Technology Enhanced Learning
>>> University of the West of England
>>> _______________________________
>>> T: 0117 32 88215
>>> 
>>> 
>>> -----Original Message-----
>>> From: xerte-bounces at lists.nottingham.ac.uk
>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat 
>>> Lockley
>>> Sent: 06 March 2012 10:12
>>> To: Xerte discussion list
>>> Subject: [Xerte] Re: feedback form on logged in page
>>> 
>>> Set the email headers option in management.php
>>> 
>>> On Tue, Mar 6, 2012 at 10:08 AM, Oliver
Haslam<Oliver.Haslam at uwe.ac.uk <mailto:Oliver.Haslam at uwe.ac.uk> >
wrote:
>>>> Hi
>>>> 
>>>> I THINK the site is now set up to send email. But I still can't get
the feedback form to successfully send emails to me. I'm not sure if it
is a setting that needs changing within Xerte or on the server itself.
>>>> 
>>>> In the error log in management.php I get the following:
>>>> [D:\shared\xerte\feedback\index.php:42]: To:
>>>> oliver.haslam at uwe.ac.uk <mailto:oliver.haslam at uwe.ac.uk> ;
>>>> -- Headers: mail() on
>>>> 
>>>> Any ideas what I should do next?
>>>> 
>>>> Many thanks
>>>> 
>>>> _______________________________
>>>> 
>>>> Oliver Haslam
>>>> Course Developer (Technologist)
>>>> Applied Sciences&   Allied Health Professions
>>>> 
>>>> Technology Enhanced Learning
>>>> University of the West of England
>>>> _______________________________
>>>> T: 0117 32 88215
>>>> 
>>>> -----Original Message-----
>>>> From: xerte-bounces at lists.nottingham.ac.uk
>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat 
>>>> Lockley
>>>> Sent: 27 February 2012 16:26
>>>> To: Xerte discussion list
>>>> Subject: [Xerte] Re: feedback form on logged in page
>>>> 
>>>> is your site set up to send email?
>>>> 
>>>> php email functions can be turned off
>>>> 
>>>> On Mon, Feb 27, 2012 at 3:16 PM, Oliver
Haslam<Oliver.Haslam at uwe.ac.uk <mailto:Oliver.Haslam at uwe.ac.uk> >
wrote:
>>>>> How do I get the feedback form on the logged in page to work?
>>>>> 
>>>>> I've put my email address in management.php under 'Site settings
(HTML / Images)' where it says:
>>>>> "The site's feedback list is (A semi-colon separated list of email
addresses to receive feedback from the feedback page)"
>>>>> 
>>>>> And I've put my email address in management.php under 'Email'
where it says:
>>>>> "The site email account is"
>>>>> 
>>>>> But I still don't get anything when I test the form.
>>>>> 
>>>>> Any suggestions?
>>>>> 
>>>>> Thanks
>>>>> 
>>>>> Oli
>>>>> _______________________________
>>>>> 
>>>>> Oliver Haslam
>>>>> Course Developer (Technologist)
>>>>> Applied Sciences&   Allied Health Professions
>>>>> 
>>>>> Technology Enhanced Learning
>>>>> University of the West of England
>>>>> _______________________________
>>>>> T: 0117 32 88215
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Xerte mailing list
>>>>> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk>

>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
>>>>> 
>>>>> This message and any attachment are intended solely for the
addressee and may contain confidential information. If you have received
this message in error, please send it back to me, and immediately delete
it.   Please do not use, copy or disclose the information contained in
this message or in any attachment.  Any views or opinions expressed by
the author of this email do not necessarily reflect the views of the
University of Nottingham.
>>>>> 
>>>>> This message has been checked for viruses but the contents of an 
>>>>> attachment may still contain software viruses which could damage
your computer system:
>>>>> you are advised to perform your own checks. Email communications 
>>>>> with the University of Nottingham may be monitored as permitted by
UK legislation.
>>>>> 
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
>>>> This message and any attachment are intended solely for the
addressee and may contain confidential information. If you have received
this message in error, please send it back to me, and immediately delete
it.   Please do not use, copy or disclose the information contained in
this message or in any attachment.  Any views or opinions expressed by
the author of this email do not necessarily reflect the views of the
University of Nottingham.
>>>> 
>>>> This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system:
>>>> you are advised to perform your own checks. Email communications
with the University of Nottingham may be monitored as permitted by UK
legislation.
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
>>> _______________________________________________
>>> Xerte mailing list
>>> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
>>> This message and any attachment are intended solely for the
addressee and may contain confidential information. If you have received
this message in error, please send it back to me, and immediately delete
it.   Please do not use, copy or disclose the information contained in
this message or in any attachment.  Any views or opinions expressed by
the author of this email do not necessarily reflect the views of the
University of Nottingham.
>>> 
>>> This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system:
>>> you are advised to perform your own checks. Email communications
with the University of Nottingham may be monitored as permitted by UK
legislation.
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Xerte mailing list
>>> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
>> This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it.
Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.
>> 
>> This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system:
>> you are advised to perform your own checks. Email communications with
the University of Nottingham may be monitored as permitted by UK
legislation.
>> 
>> 
>> 
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
>> 
> --
> --
> 
> Tom Reijnders
> TOR Informatica
> Chopinlaan 27
> 5242HM Rosmalen
> Tel: 073 5226191
> Fax: 073 5226196
> 
> 
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
> 
> 
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
 
--
--
 
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
 
 
 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk <mailto:Xerte at lists.nottingham.ac.uk> 
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
<http://lists.nottingham.ac.uk/mailman/listinfo/xerte> 
 
 
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it.
Please do not use, copy or disclose the information contained in this
message or in any attachment. Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham. 
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system: you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120307/6638bfec/attachment-0001.html>


More information about the Xerte mailing list