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

Did you know?Explore Trending and Topic pages for more stories like this.
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

Displaying a clickable playername
I am going wrong somewhere with the mysql_query, can someone please put me straight?

$playern

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

Showing selected item at top of list
Hi,

I've got a list of names which i am fetching from database like this:
$qry = db_query

How to separate records and ORDER BY
Let say i have 100 records and displayed in one page, then i want to get the records from 50-100 and

How would I do "Users not logged in since *** delete them"
I know how I would set this up, and delete the user roughly.
I'll create a table called "Use

PHP & Java
Hello,

can PHP code be used inside java code?

Code: <SCRIPT LANGUAGE="Java

WHYISNT THIS MYSQL STATEMNT NOT WORKING? (php)
caps because its absolutely rediculous.
i dontunderstand why its not working. there is a column c

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

php/mysql auto logout after 2 hour and reset password
Hi all,

This I hope will make sense. I've the following code which when a user logins in, cr

MS are the best!!!
Visit http://www.microsoft.com/australia/windows/default.aspx?h=watch-a-demo and click the massive '

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