hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : php mail problem
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

php mail problem

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-26-2003, 09:04 PM
mokkan mokkan is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Posts: 68

php mail problem


Hi,

I am using following code to send mail, it works only locally. When I try to send externally such as hotmail and other domain. It is not working. Any help would be appreciated.


<?php
$recipient = "userid@hotmail.com";
$subject = "Mail Test";
$message = "This is a test";
mail($recipient, $subject, $message, "From:test@test.com");

?>

Reply With Quote


Sponsored Links
  #2  
Old 04-26-2003, 09:40 PM
singhk singhk is offline
WHT Addict
 
Join Date: Oct 2002
Posts: 116
Are you able to send mail using other progammes like a CGI script etc.?

__________________
Pack Web Hosting
http://packwebhosting.com
Offer good support, at realistic prices.

Reply With Quote
  #3  
Old 04-26-2003, 10:10 PM
mokkan mokkan is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Posts: 68
Yes,

That works, I haved tried in command prompt and works fine without any problem.

Any help is appreicated, bit urgent.

Reply With Quote
Sponsored Links
  #4  
Old 04-26-2003, 10:13 PM
singhk singhk is offline
WHT Addict
 
Join Date: Oct 2002
Posts: 116
Does your server use CPAnel/WHM? If yes, user nobody needs to be allowed to send mail.

__________________
Pack Web Hosting
http://packwebhosting.com
Offer good support, at realistic prices.

Reply With Quote
  #5  
Old 04-26-2003, 10:15 PM
eTchoNick eTchoNick is offline
Newbie
 
Join Date: Apr 2003
Posts: 16
<?
$recipient = "userid@hotmail.com";
$subject = "Mail Test";
$message = "This is a test"."From: User@User.com";
mail("$recipient", "$subject", "$message");
?>

__________________
eTcho.Com - Advanced Hosting
AOL - eTchoNick
eMail - Nick@eTcho.com

Reply With Quote
  #6  
Old 04-26-2003, 10:18 PM
mokkan mokkan is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Posts: 68
Thanks,

Yes, I am using cpane/whm how do I let nobody to send mail?

Reply With Quote
  #7  
Old 04-26-2003, 10:24 PM
singhk singhk is offline
WHT Addict
 
Join Date: Oct 2002
Posts: 116
You need to have root access to WHM, then in 'tweak setting' see whether the box against 'prevent user nobody from sending mail' is ticked or not.

__________________
Pack Web Hosting
http://packwebhosting.com
Offer good support, at realistic prices.

Reply With Quote
  #8  
Old 04-28-2003, 02:05 PM
rollsman rollsman is offline
Newbie
 
Join Date: Apr 2003
Posts: 29
some hosts dont care for relaying, so logging into pop or imap before sending could be whats needed. I ran into this with my webhosting company. Locally my code was solid, but I had to add the read for their security measures. Let me know of you want code and if its imap or pop.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Outbound Spam Causing Sleepless Nights? Blog 2013-05-13 09:52:21
cPanel Launches Version 11.32 of Control Panel and Web Host Manager Web Hosting News 2012-02-15 12:46:33
SpamExperts IPv6 Whitelist Foundation Wins IPv6 Task Force Award Web Hosting News 2011-11-18 22:21:53
Email Provider OpenXchange Partners with Openwave Web Hosting News 2011-10-12 17:23:08
The Lesson of the Ten, with Jeff Hardy Web Hosting News 2011-08-08 22:12:01


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?