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

Paul Swanson Paul.Swanson at harlandfs.com
Wed Mar 7 18:59:19 GMT 2012


Actually, that looks like progress. Your system may be logging all
messages to the error log, even if they aren't an error.

Question: is this installation running on a live server, or on your own
computer with XAMPP installed? Since you are referencing
D:\shared\xerte, I think it is the latter. It is likely that no mail is
being sent because XAMPP doesn't automatically install a mail server
program. XAMPP does include a "Fake Sendmail" program, which, if you get
it running might solve your problem. You will need to modify
sendmail.ini in C:\xampp\sendmail -- or D: if that's where you installed
XAMPP -- and change smtp_server=localhost to point you your actual mail
server's address, which might be something like mail.ewe.ac.uk, and
possibly set force_sender= to your email address. And you will also have
to modify php.ini to set the sendmail_path to XAMPP's version. The
location for php.ini is usually C:\xampp\php, and the line you need to
change is way down in the file. Mine is at line 1095, and I have it set
to:

sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

It can be tricky to get XAMPP set up to simulate a live environment ...

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 10:32 AM
To: Xerte discussion list
Subject: [Xerte] Re: Example email headers for Xerte install please.
Anyone?

Still no luck I'm afraid...

I've put in my email information into the new_index.txt file that Pat
supplied and renamed it as index.php, and put it here:
xerte/feedback/index.php
And I've tested the form with two different versions of config.php. For
both tests I have had nothing entered in management.php in the field
that says: "The site email headers is (use the * symbol to represent a
new line)"

TEST1
I've tested the form with the updated version of xerte/config.php
(   where line 194 says:  $xerte_toolkits_site->headers =
str_replace("*", "\r\n", $row['headers']);   )

No joy. I get this in the error log:
mail() on [D:\shared\xerte\feedback\index.php:50]: To:
simon2.carter at uwe.ac.uk -- Headers: MIME-Version:1.0 Content-type:
text/html; charset=iso-8859-1 From: oliver.haslam at uwe.ac.uk Reply-To:
oliver.haslam at uwe.ac.uk

TEST2
I've tested the feedback form with the original version of
xerte/config.php
(  where line 194 says: $xerte_toolkits_site->headers = $row['headers'];
)

Still no joy. I now get this in the error log:
mail() on [D:\shared\xerte\website_code\php\error_library.php:183]: To:
simon2.carter at uwe.ac.uk -- Headers: mail() on
[D:\shared\xerte\website_code\php\error_library.php:185]: To:
simon2.carter at uwe.ac.uk matthew.cownie at uwe.ac.uk -- Headers:

With both tests I get a rather ugly  "Thank you for your feedback

Mail sent" message in the browser after submitting the form (see
attached).

I need to go home now as I think my brain is full for today. Thanks
again for all your help.
_______________________________

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: 07 March 2012 17:14
To: Xerte discussion list
Subject: [Xerte] Re: Example email headers for Xerte install please.
Anyone?

give me a sec

try this

obvious rename it, and look for the line that says "CHANGE EMAIL"

On Wed, Mar 7, 2012 at 4:59 PM, Oliver Haslam <Oliver.Haslam at uwe.ac.uk>
wrote:
> 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 -- 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>
>
>
>
> 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>
>>> 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>   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;
>
>>>>> -- 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>   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
>
>>>>>> 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
>
>>>>> 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
>
>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>>>> _______________________________________________
>
>>>> Xerte mailing list
>
>>>> Xerte at lists.nottingham.ac.uk
>
>>>> 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
>
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>>> _______________________________________________
>
>>> Xerte mailing list
>
>>> Xerte at lists.nottingham.ac.uk
>
>>> 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
>
>>> 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
>
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>>
>
>>
>
>>
>
>> _______________________________________________
>
>> Xerte mailing list
>
>> Xerte at lists.nottingham.ac.uk
>
>> 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
>
> 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
> 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.
>
>




More information about the Xerte mailing list