SMTP server...


Posted on 16th Feb 2014 07:03 pm by admin

I recently found a tutorial online on SMTP authentification for sending emails from webpages, here is the tutorial here...

http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

here is the webpage I'm utilizing it on...

http://www.adobedayevents.com/project_request/project_request.php

i'm not getting an error about the SMTP server anymore, but rather an even weirder one...

Fatal error: Class 'Mail' not found in D:WebRootDomainsadobedayevents.comwwwrootproject_requestsend_request_2.php on line 51

line 51 is this...

Code: $smtp = Mail::factory('smtp',
which is a part of this code block...

Code: $headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));

Can anybody tell me why on earth 'Mail' isn't a class? I know someone else who used this script for there website and it is working fine with that Mail::factory chunk in it. Anyone have a clue why it won't work on mine? Server setting? configuration??

No comments posted yet

Your Answer:

Login to answer
266 Like 17 Dislike
Previous forums Next forums
Other forums

LSB (PHP 5.3) problem with static value!
hello,

i'm having a problem. static::$text variable gets lost at some point. can someone plea

php require help needed
Ok i tried to use the search funtion but the word require is everywhere.

i'm really new to cr

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

help with image upload code
Hello,

right now this code I have resizes images and then places them into the uploads folder

Parse multirow HTML table
Hello all,
I have a site I am working on. Its a sports site and I am trying to add stats to a DB

default SAP userid
hi,, I just like to know if it is ok to use the default SAP user id (SAP*)?

Using the $_GET variable to view certain records
Hello,

First let me explain my problem, I have 2 pages the first page pull a list of Guide ti

Problem with "dynamic" index page
Hi. I have one question. In my index.php page I have this kind of code:
Code: // listaa sivut

order by date not ID number help php
I am trying to orginize the following code to order by date not id number.
any help would be grea

Ball movement
I want to move a ball from one point to another and it should hit a group of balls at the other end

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash