473,395 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Email script hanging on execution.

underscore
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 1424
Atli
5,058 Expert 4TB
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 Expert 4TB
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
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...
5
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. ...
14
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...
13
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...
3
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
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...
1
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...
5
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...
2
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...
1
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: ##...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.