473,788 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email script hanging on execution.

underscore
30 New Member
hello to all TSDN

i wandered my mail problem.
am using a php to mail a person using my page...
my code like this..
Expand|Select|Wrap|Line Numbers
  1.  
  2. $recipient = $POST['txtlogid'];
  3.         $subject = 'Mail Test';
  4.         $message = 'Greetings,'
  5.                     ."\n\n\t".'This is a test of mail functionality.'
  6.                     ."\n\n".'Thanks';
  7.         $headers = 'From: user@example.com'."\r\n"
  8.         .'Reply-To: user@example.com'."\r\n";
  9.  
  10.         if (mail($recipient, $subject, $message, $headers)) {
  11.             echo 'Mail Sent';
  12.         } else {
  13.         echo 'Mail NOT Sent';
  14.         }
  15.  
  16.         }
  17.  
when i click my send button in my page it will hanged..

in my win32 (php.ini)
Expand|Select|Wrap|Line Numbers
  1. ; For Win32 only.
  2.  
  3. SMTP = smtp.example.com //my outlook express smtp
  4. smtp_port=465 // my outlook express smtp_port
  5.  
  6.  
  7. sendmail_from = myemail@example.com
  8.  
can you please help me why i am hanged?
plss... help...

thanks.
Nov 3 '07 #1
2 1435
Atli
5,058 Recognized Expert Expert
Hi.

Are you sure you are using the correct port?
The outgoing SMTP port is usually 25 or 26.

Is it possible that you are using the incoming port rather than the outgoing?
Nov 3 '07 #2
Atli
5,058 Recognized Expert Expert
I've changed the thread title to better describe it's contents.
Please read the Posting Guidelines, specifically the part about Using good thread titles for details on what we consider good thread titles.

Also, please do not use real emails in your posts, as they are not allowed in the technical forums. This is mainly to protect your emails from being harvested by spammers.

Moderator
Nov 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1497
by: omission9 | last post by:
Any advice on the following would be much appreciated. I have thrown everything I have at it and am completely stumped. I apologize for the length, I have tried to be as succint as possible. I have a pythoncard/wxPython application. The application works well except that users were reporting occasional crashes. The application would simply stop and just hang. I was able to reproduce the bug faithfully and ran the application in the...
5
6306
by: Boris Nikolaevich | last post by:
This is backwards of what I usually want--normally if you have a long-running ASP script, it's a good idea to check to see whether the client is still connected so you can cancel execution. However, I have a script that absolutely MUST finish one it's been started--is there a way to cause the entire script to execute, even if the client disconnects in the middle of the process? It doesn't matter if the script returns anything to the...
14
2010
by: Pascal Damian | last post by:
My HTML pages have a <SCRIPT SRC=http://remote/script> at the top'ish of each page. Sometimes the remote host (probably due to heavy load or flaky network connectivity) doesn't respond for a long time. This causes the whole page to appear hanging without anything loading. Is there some trick I can use with settimeout() so that if the remote script cannot be loaded after, say, 30 seconds, then I can tell the page/browser to cancel loading...
13
1895
by: nobody | last post by:
Hello all, I've searched just about everything and although I can see that other people are having problems, but theirs don't seem to relate, so in a last ditch attempt, my posting! Script tags are hanging in ie when generating a html page in a new window. Works fine in netscape/moz. I know ie does some weird things with scripts but...
3
47833
by: iam980 | last post by:
Hello All. We have tested following SQL script from query analyzer: -- Script begin DECLARE @I int; SET @I = 1; WHILE @I < 10000000 BEGIN SET @I = @I + 1; END -- Script end
2
1858
by: Bob Bedford | last post by:
I've seen many implementations of the timeout hack when sending a lot of emails. I can't set the timeout variable, as it's timeout(0) doesn't work, I still have 30 seconds. I've to send many emails with attached file, so it will take more time when the server is hardloaded, and I can't have a Cron job to do things. What's the best way ? the simplest seems to be the "location" to the script
1
3309
by: Chrace | last post by:
Hi all, I have a problem with with Thread.Join( Timeout ) where the timeout never occurs. I basically need to make a connection to an AS400 box which works fine. Once in a blue moon the AS400 gets a problem and the way this is handled on AS400 is by hanging. If I was to connect directly this would mean my main process would hang as well, so I've spawned a worker thread and used a Thread.Join( Timeout ) to make sure it always returns with...
5
2862
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script and then stops or refreshes the browser before the script had time to finish will Apache kill the script mid execution or will it let it finish ? I ask this stupid question because this seems to be happening in one
2
8323
by: kj | last post by:
Hi! I have a Pythonoob question. I have a script that hangs indefinitely at random times; the only thing to do at this point is to kill it. I'm looking for suggestions on how to troubleshoot and debug the problem. I'm not even sure of where exactly the script is hanging, though I suspect it is right around when it tries to read from a pipe
1
2227
by: vijayarl | last post by:
Hi All, I need to send a email based on the flag value, am using Email::Send module(CPAN). Requirement : 1.Based on the $email_flag, call the send_email function so, script goes like this: ## In main function ## if($email_flag == 1){ &send_email; ## calling the send_email sub-function
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5403
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2897
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.