PDA

View Full Version : Help regarding mail sending option



jasvarghese
August 24th, 2007, 08:42 AM
Hai All,

i am a newbie to php. I created code to send mail and when i am trying to send it its throwing an error like

Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in D:\hosting\member\xentaqsys\testsite\sampleTwo\use r\index.php on line 35

Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.;C:\php5\pear') in D:\hosting\member\xentaqsys\testsite\sampleTwo\use r\index.php on line 35

Why its happening?
The site is hosted in an IIS server. If anyone know the solution pls let me know as early as possible. I am in a hurry to get the solution for the same. how cold i rectify this. All the helps would be greatly appreciated.

Thanks & regards
jaison

Grofit
August 24th, 2007, 09:05 AM
Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in D:\hosting\member\xentaqsys\testsite\sampleTwo\use r\index.php on line 35

Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.;C:\php5\pear') in D:\hosting\member\xentaqsys\testsite\sampleTwo\use r\index.php on line 35


that tells you what your problem is, it cant find your file how are you requiring relative or absolute?

if you can include the line that says "require_once("file");" then we can try to help you diagnose the problem, first of all make sure the case is identical Mail.php and mail.php may not match. Also make sure that its in the same folder or if its not you put a relative link to it. If that fails you may need an absolute link, try both to see if one works then you can see where to go from there...