PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 28th, 2006, 11:03 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Posts: 65
Email support

How / where do I define my mail server?

I get this error when trying to use the contact member feature:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\inetpub\bloodbanktalk\classifieds\contact.php on line 82
Amedeus is offline   Reply With Quote
Old March 1st, 2006, 12:52 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
That is normally defined in your php.ini file. You may need your host to help modify PHP mail settings
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 1st, 2006, 01:04 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Posts: 65
Hmm, Are there files I can edit instead?
Here is the response from my host.

We do not specify local email settings in our php.ini. All settings have to be specified in the code.
If this application uses phpmail to send mail we have sample code here
https://www.webcontrolcenter.com/Kno....aspx?KBID=737

Basically you will specify your mail server with us and a valid email account on that server.
Hopefully this can be done in the application you are using.
Amedeus is offline   Reply With Quote
Old March 1st, 2006, 01:16 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
You can place those ini_set variables filled out correctly with your info at the top of the pp-inc.php file
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 1st, 2006, 06:21 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Posts: 65
Thanks, that worked.
Amedeus is offline   Reply With Quote
Old February 18th, 2007, 03:03 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 33
Any advice on how to handle the coding for SMTP authentication with this?
tjanders is offline   Reply With Quote
Old February 18th, 2007, 03:23 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Your PHP.ini file needs to have the proper settings to allow mail so as stated above if your not sure what the correct settings are or how to alter them you may need to get your webhost to set things up correctly.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 11th, 2007, 08:35 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 33
Well, after many hours trying to build in the SMTP AUTH username and password required on my Windows servers, I've come to the embarrassing revelation that they aren't required in the php code. Adding the suggested coding in the link above is sufficient.

It would be nice if you built those pararmeters into your admin control panel in the future. That way we don't have to remember our modifications in order to keep email running upon an upgrade. Thanks.

Last edited by tjanders; March 12th, 2007 at 12:31 AM.
tjanders is offline   Reply With Quote
Old March 12th, 2007, 07:48 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
those are PHP override lines that really have nothing to do with Photopost persay. If you spent so much time rebuilding things why not just correctly build PHP with the proper values and you dont need to use those lines. I mean all you need to do is edit your php.ini file as I stated and enter the proper mail settings
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 26th, 2009, 06:25 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 107
Quote:
Originally Posted by Amedeus View Post
Hmm, Are there files I can edit instead?
Here is the response from my host.

We do not specify local email settings in our php.ini. All settings have to be specified in the code.
If this application uses phpmail to send mail we have sample code here
https://www.webcontrolcenter.com/Kno....aspx?KBID=737

Basically you will specify your mail server with us and a valid email account on that server.
Hopefully this can be done in the application you are using.
"You can place those ini_set variables filled out correctly with your info at the top of the pp-inc.php file "

Chuck, The above link no longer exists. Can you please give me the correct settings so that I can put them into my pp-inc.php file?
btw: The mail server is just an ip address, not a domain name.
ktmtalk is offline   Reply With Quote
Old October 26th, 2009, 10:27 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
KTM I beleive the individual was referring to his webservers specific requirements on PHP mail.

I cant tell you his webhosts specific requirements on PHP mail. We use a simple php mail string to send email. If your host has specific requirements to allow php email they should be able to tell you the setup on that.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 27th, 2009, 03:32 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 107
I am writing a "force php to use external smtp server" routine that I will
be happy to share if anyone wants it.

WHY?? If the server is windoze, an external smtp server can be added to the php.ini.

But if the server is *nix, or if the server is a shared host, it cannot be changed for the owner of PhotoPost Classifieds.

The problem I am seeing is in: in pp-inc.php,

Code:
Content visible to verified customers only.
There is a line near the top of that function that does this:
Code:
Content visible to verified customers only.
What I am seeing is that the "From: " is causing a problem if the admin has not selected "html" because there is another line just below the html check
that does this:

<if not html> (psuedo code)
Code:
Content visible to verified customers only.
and results in the "sendfrom" email address now becoming:

"From: myemail@dot.com" instead of : "myemail@dot.com"

My new email function works fine if I strip the "From: " but obviously dies if I leave it in.

Am I wrong in my thinking?


-pat-
ktmtalk is offline   Reply With Quote
Old October 27th, 2009, 09:30 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
well why not simply try this

Code:
Content visible to verified customers only.
change it slightly to this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 27th, 2009, 10:34 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 107
Quote:
Originally Posted by Chuck S View Post
well why not simply try this

Code:
Content visible to verified customers only.
change it slightly to this

Code:
Content visible to verified customers only.
funny... thats exactly what I originally did but was worried that it might break something else so I did it a tad different.

btw: I think the same scenario with the "From:" is also in the contact.php.

around line 169
Code:
Content visible to verified customers only.
ktmtalk is offline   Reply With Quote
Old October 27th, 2009, 10:35 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
You can alter it as you wish.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 27th, 2009, 10:48 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 107
Here is my new mail function to use an external mail server in *nix. Feel free to delete if it's inappropriate for me to post this:

in pp-inc.php, at the top, add:
Code:
Content visible to verified customers only.
then change all occurances of "mail(" to "my_mail("
There's only a few of them in pp-inc.php and contact.php

I probably should have added some error checking but was too lazy.

If I REALLY wanted to do it right, I would add it to the settings table and the setup... but like I said... I was too lazy.
ktmtalk is offline   Reply With Quote
Old October 28th, 2009, 07:43 AM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
You do know php can do smtp email right? all you need to do is input via some ini_set lines to specify the smtp stuff or edit the php.ini file

You never had to go through the trouble of writing up some hard coded solution. I wonder why your host would not have told you that. Thats what most hosting solutions state.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 28th, 2009, 11:52 AM   #18 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 107
from the php.ini file:
Code:
Content visible to verified customers only.
php will not use those settings if the box is a *nix server

http://email.about.com/od/emailprogr...nding_Mail.htm


btw: I am the host - it's my server.
ktmtalk is offline   Reply With Quote
Old October 28th, 2009, 12:02 PM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Quote:
On other platforms, PHP should use the locally available sendmail or sendmail drop-in just fine.
This is what I am referring to. Our program simply uses sendmail. If you wish to use SMTP that is not something we directly support. I have a nix server and my mail command works just fine in PHP.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 28th, 2009, 12:05 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Now not to say in the future we might support SMTP email
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Support for 3.5 bugzy Before You Buy 1 October 5th, 2005 07:00 PM
PHP 5 support? MrDaniel Before You Buy 4 November 26th, 2004 02:23 PM
Support Help phoenix1962 Before You Buy 3 November 5th, 2004 07:32 AM


All times are GMT -5. The time now is 01:42 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0