PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > PHP
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old 5-4-12, 11:01 PM   #1
PeterPan
 
Join Date: Sep 2002
Location: Auckland
Posts: 1,227
Reputation: 59
Debugging a function - error ??

Hello.

I've created an email script (several years ago..), and recently discovered it is not working..

During my tests now, Everything else in my script works except the part that sends the email.

I've googled but can't find the exact phrase

mail($emailaddress, $emailsubject, $msg, $headers) OR (show error message);

Can anyone advise what the OR part is - the exact phraseing to show a debug message. (I've googled but can't see any examples of it - what to put after the first part..)..


i'm using the SMTP functions - not 'mail' - but i guess the 'or error' part is similar.

Quote:
$mail_object =& Mail::factory("smtp", $smtpinfo);
$mail_object->send($recipients, $headers, $mailmsg);
Thank you.
PeterPan is offline   Reply With Quote
Old 5-8-12, 10:41 AM   #2
entrecon
Custom User Title
 
entrecon's Avatar
 
Join Date: Aug 2006
Location: Michigan
Posts: 2,669
Reputation: 337
Since it was working, any chance it is something that PowWeb started blocking?
__________________
________________________________
Find me on twitter: @entrecon
entrecon is offline   Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:31 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.