/    Sign up×
Community /Pin to ProfileBookmark

PHP, Prob a Noob Problem

For some reason, using Enomcentral.com as my web host I can not get my php forms to mail to my box. I have installed phpmailer_5.2.1 and have edited my php.ini file to include the mailer. Below is my include path in my php.ini.

; UNIX: “/path1:/path2”
;include_path = “.:/php/includes”
;
; Windows: “path1;path2”
include_path = “.;c:php5”
include_path = “class.phpmailer.php “

I try and run a simple php test.

<?php
mail(‘[email protected]‘,’Test mail’,’The mail function is working!’);
echo ‘Mail sent!’;
?>

It says mail sent yet I recieve nothing in my inbox?? So I thought mb I have to include the path and changed my code to this.

<?php
mail(‘[email protected]‘,’Test mail’,’The mail function is working!’);
echo ‘Mail sent!’;
require(“class.phpmail.php”);
?>

Now this is the error I get….Still no mail in the mailbox.

Mail sent!PHP Fatal error: require() [function.require]: Failed opening required ‘class.phpmail.php’ (include_path=’class.phpmailer.php ‘) in E:USERSgreenwaylawnwwwphptest.php on line 4

Is there anything else i need to change in my php.ini file or is there anything i need to change in the phpmailer file… plz help im so lost right now.

Thank You SOOOOO Much for your time.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@jaimegmApr 27.2012 — My question is did you already verified that class.phpmailer.php is there?

Second where is it? (I mean in what directory)

Now it seems to me that you are setting the path according to linux rules instead of windows rules, check that, I think you are not modifying the path correctly
Copy linkTweet thisAlerts:
@GettingSmartApr 29.2012 — Seems like you are trying to use this local.

Is that correct?

To use the php mail function I believe it's mandatory to have a mail server running. This could cause your trouble.
Copy linkTweet thisAlerts:
@SilviusauthorMay 02.2012 — What do you mean by trying to use this local?

I uploaded my class.phpmailer.php in to the default directory for enom

./www

Anyone have any answers?
×

Success!

Help @Silvius spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...