Problem: Php And Sendmail - Sendmail Times Out - Problems with PHP and sendmail

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Problem: Php And Sendmail - Sendmail Times Out - Problems with PHP and sendmail

ivobrett
Hi Guys,

On other hosting service I have had major problems using the sendmail function (i.e. mail()) from php. Basically the script times out waiting for sednmail to return from the function call.

Anyone else had this problem and is there a solution?



Notice from m^e:
Make your topic titles as descriptive as possible. Topic title to message body relevance is counted as a big factor on this board, and is the key to elicitation of good replies from other members.

Reply

guntaka
Hai, The problem you are facing is not in PHP, but in your hosting provider. One reason is that you have no permission to use sendmail, second is that IP address si not in the list of allowed domains for the receiver.

Check out with your host and check your script with other hostings.
Then you will know what the real probelm is?

hope it will help!!!!!!!!


Sincerely yours,
guntaka,
www.qinf.org

Reply

Hercco
My guess is that sendmail has been disabled but somehow mail() is allowed in PHP. So php tries to call sendmail but there's no reply (hence the timeout).

If this is the case your host could disable mail() in PHP aswell.



Other option is that sendmail isn't just working, because of heavy spamming or something.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Similar Topics

Keywords : problem, php, sendmail, sendmail, times, problems, php, sendmail

  1. Five Common Php Database Problems
    (0)
  2. I'm Having Problems With Sessions
    (2)
    I haven't really read much about sessions, i usually study PHP by viewing other's codes and
    learning from it. Here's what keeps on popping out when I open the page. CODE Warning:
    session_start() : Cannot send session cookie - headers already sent by (output started at
    C:\Program Files\xampp\htdocs\maple-radio-live\loggingin.php:7) in C:\Program
    Files\xampp\htdocs\maple-radio-live\loggingin.php on line 40 and CODE Warning: Cannot
    modify header information - headers already sent by (output started at C:\Program
    Files\xampp\htdocs\maple-radio-live....
  3. Htaccess/gd Problems.
    (0)
    On this shell, that has shared apache, php and gd, I have this file working.
    http://users.phoenix-network.org/~tobylane/gd.php But, with the normal htaccess of CODE
    RewriteEngine on RewriteRule ^sig.png$ gd.php http://users.phoenix-network.org/~tobylane/sig.png
    Doesn't work. Also, another gd picture doesn't display the text. CODE
    header("(anti-spam-(anti-spam-(anti-spam-content-type:))) image/png"); $im =
    imagecreatefrompng("button.png"); $bg = imagecolorallocate($im,255,55,25); imagefill($im,0,0,$bg);
    imagestring($im,3,20,5,"Your IP is ",$b....
  4. Making My Album
    problems with rights (3)
    We have to make something in PHP for school, so I decided to make a complete photoalbum. One of the
    things that it can is creating and storing thumbnails, but here is where the problems start. The
    thumbnails have to be stored in a subfolder called 'thumbnails', if this folder doesn't
    exist, my script creates this folder and everything works like it is supposed to be. But it
    doesn't do that the way I want. The folder is made with: CODE mkdir($thumbnail_folder,
    0777); but when I check it via FTP, it is set to 755. Even worse is that I can't acce....
  5. User Authentication Session Handling Problems
    Authorization server variables not staying across pages (14)
    This is quite a bit of problem I am facing, and I cannot point exactly where I am going wrong. I
    have been lurking around here at the Asta Host forums with regard to login and user authentication
    scripts and I have got as far as this: - Starting a session - Registering a session variable -
    Using the variable to check if the user is authenticated or not. - Authenticating the user through
    MySQL database - Logging of the user, by setting the session variable to un-authenticated I have
    been able to achive the following things too that I think is not related to this proble....
  6. Simple PHP News System Problems
    (1)
    For the new version of my website I'm trying to make a very simple newssytem based on php. Each
    newsitem will get it's own html page, something like this: CODE Welkom HERE
    COMES THE TXT All other data will be stored in a file called news.inc CODE $news
    = array(); $news = '110706_jovolka.html'; $news = '110706_lorum.html'; $news =
    '090706_welkom.html'; $title = array(); $title = 'Over JoVolKa'; $title =
    'Lorum Ipsum'; $title = 'Welkom'; $date = array(); $date = '11/....
  7. Problem With PHP Scripts Without MySQL
    i have problems with scripts (1)
    I've been working on my site, and the first time i tried my hand witha php guestbook script, i
    did good, it worked on my host. but although i successfully installed an "send email" php script,
    but somehow although on the site when i tired out the form, though it says email has been sent,
    i've not received any email at all!!! and i've checked the account that was to specified
    for the email to be sent , i have entered everything right. This are the steps the manual asked me
    to do, QUOTE 1) Open up config.php with a word editor such as notepad. Fill ....
  8. Some Problems Sometimes On Other Sites!
    Others come up with wierd problems! (2)
    I am not the most regular contributer to PHP Builder but every now and then there is just a question
    from a newbie or someone that can not be fixed. I do not know if it is that they do not know how to
    ask the question but this one has been going on too long. It seemed from the question that they
    asked that they wanted to insert some data froma text file into the MySQL database. So after looking
    at their query (the original question) QUOTE Here's part of my code: Code: $result =
    mysql_query("INSERT INTO AL_BVA (contact, time, phone, address, city, state, zip, ....
  9. Php: Write Random Text As Image
    Having problems, help needed! (3)
    I'm trying to create a script that writes text to an image. CODE header("Content-type:
    image/png"); $_phrases = array( "Test 1", "Test 2", "Test 3", "Test 4", "etc." ); $_rand_phrase
    = $_phrases ; $_image = imagecreatefrompng("gmail.png"); $_user_width =
    imaagettfbbox(9,0,"tahoma.ttf",$_rand_phrase); $_x_value = (200-($user_width + 113)); $_color =
    imagecolorallocate($_image, 165, 164, 164); imagettftext($_image, 9, 0, $_x_value, 16, $_color,
    "tahoma.ttf", $_rand_phrase); imagepng($_image); imagedestroy($_image); I can't see what
    I'm doing wron....

    1. Looking for problem, php, sendmail, sendmail, times, problems, php, sendmail






*SIMILAR VIDEOS*
Searching Video's for problem, php, sendmail, sendmail, times, problems, php, sendmail
advertisement




Problem: Php And Sendmail - Sendmail Times Out - Problems with PHP and sendmail