Please help, class.smtp.inc error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phillife76
Forum Newbie
Posts: 13
Joined: Thu Aug 16, 2007 8:41 pm

Please help, class.smtp.inc error

Post by phillife76 »

Hi evryone, i m using oscommerce and i m able to sent email in my admin tool, but if i sent newsletter, i hit the error : Fatal error: Cannot redeclare class smtp in /home/www/littlefairyland.com/admin/includes/classes/class.smtp.inc on line 12
Please advice what should i do, thanks.
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

Hello phillife76 :) ,

it is very possible that your script includes the class file twice.
phillife76
Forum Newbie
Posts: 13
Joined: Thu Aug 16, 2007 8:41 pm

Post by phillife76 »

miro_igov wrote:Hello phillife76 :) ,

it is very possible that your script includes the class file twice.
Hi,

you refering to the newsletter scripts? Hmm... i go check on it. :) is there anythg that i can look for?

Thanks
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

Did you done some change on this file or you use the standard osC distro ?
phillife76
Forum Newbie
Posts: 13
Joined: Thu Aug 16, 2007 8:41 pm

Post by phillife76 »

miro_igov wrote:Did you done some change on this file or you use the standard osC distro ?
There is no class.smtp.inc in my original osc. i got this from the net and added in host name, helo, etc. And my email sending in admin tool become ok. But it is just the newsletter become haywired. Giving me the error.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to PHP-Code.
Post Reply