Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Task 4C-1
March 03, 2008 07:55AM
Done
Re: Task 4C-1
March 18, 2008 07:44AM
Completed this task and got the expected error message. I then tried to set-up the mail server in my php.ini file just to see if it would send the email but alas I still got the error message! Not sure what the second part (in bold) of the error message is referring to though?

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Program Files\xampp\htdocs\thankyou.php on line 68Failed to send the email.
Re: Task 4C-1
March 18, 2008 07:47AM
Just in case you are wondering line 68 of my code refers to the code below:


if (mail($mail_to, $mail_subject, $mail_body))
avatar
Mac
Re: Task 4C-1
March 18, 2008 04:49PM
Check the 4c thread in 2007 sem 1.... no use repeating smiling smiley There is a wealth of information in previous forums, and we consider that to be part of the course material. It is difficult to answer questions like these since it may be based on your XAMPP configuration, so previous forums provides for plenty scenarios....

What is important here is mail($mail_to, $mail_subject, $mail_body);

You use that on a live server that is connected to the Internet then your mail will go through. Do get it working on XAMPP requires skills that is not part of this course (it is part of a Linux Administrator course) smiling smiley
Re: Task 4C-1
March 19, 2008 09:06AM
Okay will have a look thanks. thumbs up
Re: Task 4C-1
March 25, 2008 05:08PM
Done. With the accepted error.
Re: Task 4C-1
March 27, 2008 12:37PM
Completedspinning smiley sticking its tongue out
Anonymous User
Re: Task 4C-1
March 30, 2008 07:02PM
Done!
Re: Task 4C-1
April 06, 2008 11:27AM
done. am i echoing yet? (echoing yet)
JwV
Re: Task 4C-1
April 08, 2008 03:47PM
Did the task, got the error. Would have liked to have it work. Will read up in the previous forums.
Re: Task 4C-1
April 08, 2008 04:47PM
completed
Re: Task 4C-1
April 28, 2008 01:28AM
Done. I did not have any errors in this topic. The only problems i have come across with php mail() is that many mail servers do not trust it where it comes to SPAM etc. This is an issue i think should be seen to.
Re: Task 4C-1
May 13, 2008 10:42PM
search your php.ini file for the section below, you can specify the server to send mail to, usually you would specify your isp's mail server. This would stop the mail being picked up as spam.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

Hope this helps.

I completed this a while back.
Sorry, only registered users may post in this forum.

Click here to login