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

help with this code please?
Hello,

I am trying to build a remote upload script for my image hosting site.

I am usi

Multiple while loops
I have several DB queries that I know should be returning results and aren't. I have a feeling it ha

Need Help with a query
Hello,
For some reason I am just not getting the right answer when I do this query and not quite

Simple Variable Question
Hi everyone.... again,

I am really getting into php still. Learning more every day. I love it

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

How can I uploading Transactional Data from Legacy to New SAP system
Hell Gurus,

I am overwhelmed with questions on how to migrate huge volume of Sales Orders

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

Greek characters in php
Hi,

I'm making a script and I m using for first time greek characters.
I started to write

sql error
I have been looking at this code for 20mins and can't work out what I am doing wrong. There is somet

Links not updating
I'm trying to fuel a simple navigation system for a news section. It works fine when it comes to ret

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