Thauwa Posted December 20, 2008 Share Posted December 20, 2008 Hello. I am new to these forums. :oops: The host I am using (GoDaddy) disables any function to be carried out with the php code mail(). My need is dire. I need to somehow use this method. Can anyone give me a suitable approach to my problem (i.e. something to replace "function')? Thank you. I am working a deadlined project for my boss. I use php/MySQl. So please help me. Quote Link to comment Share on other sites More sharing options...
trq Posted December 20, 2008 Share Posted December 20, 2008 Your host has disabled mail()? Upgrade or change hosts. Quote Link to comment Share on other sites More sharing options...
redarrow Posted December 20, 2008 Share Posted December 20, 2008 Becouse your boss dosent want to move from your current crap host, solution's 1. build a built in message system, Like this forum with no emails being sent out theo... 2. look up a dns service that helps with blocked mail. IF YOUR BOSS WANTS A REAL EFFECT IN TODAYS WORLD THEN HE PAYS FOR A NICE PROPER PHP 5 HOST PACKAGE, THERE VERY CHEEP AROUND $3 A MONTH OR £1.50 MONTH. Good luck..... Quote Link to comment Share on other sites More sharing options...
redarrow Posted December 20, 2008 Share Posted December 20, 2008 Read this properly if it helps........... http://www.dyndns.com/services/mailhop/forward.html Quote Link to comment Share on other sites More sharing options...
redarrow Posted December 20, 2008 Share Posted December 20, 2008 do this then provided from here ok. http://www.zen-cart.com/forum/showthread.php?t=83459 No PHP code changes involved here! Go to the email configuration page in the ADMIN system. I was only able to get SMTP method to work. I had to use the mail relay server "relay-hosting.secureserver.net" provided by godaddy as the smtp host. This may be different for your machine - contact godaddy to confirm the name of the Mail Relay Server for your configuration. You must set the email to be sent from a known domain to YES. This forces the emails to use the SENT FROM address you will set up next. You must use an email address like zencart@YOURDOMAIN.COM (though not required to be an actual mailbox) in the SENT FROM option. VERY IMPORTANT==> The email address must contain your domain in the address. SMTP Account MAILBOX and PASSWORD should be blank. Quote Link to comment Share on other sites More sharing options...
Thauwa Posted December 20, 2008 Author Share Posted December 20, 2008 Thanks for your concern. I am up to it Quote Link to comment Share on other sites More sharing options...
Thauwa Posted December 20, 2008 Author Share Posted December 20, 2008 godaddy gave me my relay server name. it is the same as yours. Quote Link to comment Share on other sites More sharing options...
redarrow Posted December 20, 2008 Share Posted December 20, 2008 Every user get a set configuration. The post and link i provided is not my written post, was from google mate. you can contact godaddy for help there very slow as what i ve read.. Quote Link to comment Share on other sites More sharing options...
Thauwa Posted December 20, 2008 Author Share Posted December 20, 2008 I contacted last night. got a reply this morning. it was the same as yours.. Quote Link to comment Share on other sites More sharing options...
Thauwa Posted December 20, 2008 Author Share Posted December 20, 2008 got a teeny tineee problem.. ""Go to the email configuration page in the ADMIN system"" where is 'ADMIN system'? P.S. sorry for being such a jerk Quote Link to comment Share on other sites More sharing options...
Thauwa Posted December 20, 2008 Author Share Posted December 20, 2008 I think that the mail() function works without the things following the $ sign. does anyone know what the order of those strings are? like 1.$to 2.$subject 3.$body where does '$from' come? are there other $ signs? Quote Link to comment Share on other sites More sharing options...
trq Posted December 20, 2008 Share Posted December 20, 2008 Its all covered in the manual. where does '$from' come? How should we know? we would need to see your code. are there other $ signs? If you really need to ask that question I think your boss should seriously consider hiring someone who knows what they are doing. Quote Link to comment Share on other sites More sharing options...
Thauwa Posted December 20, 2008 Author Share Posted December 20, 2008 I seriously agree with you. He ought not to have given me the job. Anyway, I am about to solve my problem. I discovered the problem with my host. I have a few more questions. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Thauwa Posted December 20, 2008 Author Share Posted December 20, 2008 class Mailer { function sendWelcome($user, $email, $pass){ $from = "From: ".EMAIL_FROM_NAME." <".EMAIL_FROM_ADDR.">"; $subject = "Welcome to my site!"; $body = $user.",\n\n" ."Welcome! You've just registered at ILoveDOingStuff.com " ."with the following information:\n\n" ."Username: ".$user."\n" ."Password: ".$pass."\n\n" ."If you ever lose or forget your password, a new " ."password will be generated for you and sent to this " ."email address, if you would like to change your " ."email address you can do so by going to the " ."My Account page after signing in.\n\n" ."- ILoveDoingStuff.com"; return mail($email,$subject,$body,$from); } Thats the code. There is a process.php file and it makes function sendWelcome work when a new member signs up. sendWelcome is given above. GoDaddy dosen't allow $from, $subject and $body. I tried a plain mail code like: <?php mail ( "admin@ilovedoingstuff.com", "test message", "this is a test message, if you are reading this the email was sent successfully." ); ?> (i got code from another site) This code worked. so, how to I set up the first code to work in the format of the second? this is my objective. thanks for help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.