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

dropdown menu
Hello everbody,

I am php newbie.
I need to develop a program that once click the drop do

file downloaded can't be read !!
<?php
$fileName = 'mypic.jpg';
$mimeType = 'image/jpeg';
header('content-dispositio

Little problem with form insertion in MySQL, Please help!!!
Hi!,

I'm a little bit new with php and I have a little issue here. I created a webform to ins

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

Php If in MySql query (hiding labels if a field is empty)
Okay, I've been trying to do this for a while, and I'm finally going to ask for help so I can get th

Quick Syntax Question
Hi folks,

I'm getting the following error: "unexpected T_LNUMBER". I'm trying to b

browse folder only
hi,
is there a way i can browse or get the directory or folder only and not the file?
i just w

How to schedule the a job?
Hi,
I have prepared a task ( i.e. a procedure is prepare the file and send the same to con

how to populate a drop down box
Hi buddies!

PROCEDURE DOWNLOAD_REPORT_FORM (report_name varchar) is begin DOWNLO

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

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