473,386 Members | 1,791 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,386 software developers and data experts.

mail() function issue...**URGENT!

borisding
[MOD: Moved from PHP forum. -pbmods]

Hi there,

Well, I really need help from someone here, and hope that someone will answer my question and solve my problem. I know it's very common question and being asked by many developers:

Basically i keep getting warning message and unable to send out email:
[PHP]Warning: mail(): Failed to connect to mailserver at "mail.xxxx.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\hosting\xxxx\xxx\thankyou.php on line 314[/PHP]

I have already done what i'm supposed to do.
a) changed the setting in php.ini file, that connect to the correct mail server.
b) Added server ip address to relay and allowed to send out email, for aunthentication etc.

Basically, my script is on Server A (not mail server), and need to connect to Server B (mail server) for sending email. After everything done, and restart Server A, it's working and able to send out email. But after end of day, it's unable to send out the mail anymore, yet get the warning message instead. I'm sure the mail server is correct. So,

1) What could be the problem? is it the php installation problem?
2) Why it's not stable, only sustain for one day (next day fail to send out email)?

PS: Current php version is 4.3.9, on Windows server 2000 with IIS support.

Pls help! thanks in advance.
Oct 8 '08 #1
4 2197
Ferris
101 100+
Maybe there's a firewall on Server B , it regarded your e-mail as a spam.
I suggest you may change an E-Mail account and have a try, to make sure there's no problems in PHP.
Oct 8 '08 #2
pbmods
5,821 Expert 4TB
If your code isn't changing, then it sounds like something is going on on your mail server. I'm going to go ahead and move this thread and let our Linux Experts have at it.
Oct 9 '08 #3
micmast
144 100+
what mail server are you using?
Oct 9 '08 #4
Hi Guys,

Thanks for all replies! Anyway, the problem is already. Basically i have decided migrated the php application to the new server.. Thought the Original server is too old and not strong enough to connect to mail Server (what I read from other forums).

Anyway, I didn't change any scripts inside the application,apart from some setting in php.ini for new server, of course.|o| Now the problem is solved on the new server..

Thanks.
Oct 10 '08 #5

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

Similar topics

7
by: Jim Seymour | last post by:
I have a contact form that uses PHP's mail() function. It recently came to my attention that (some?) MS-Windows mail servers may not properly process data given to the mail() function that's only...
2
by: Groupe Eurower | last post by:
Hi, I would like contribute to the PHP development but i don't really know where i can submit my codes ! In fact, i'm a Web Hosting and i authorize the utilisation of the mail() function. ...
1
by: tencip | last post by:
Hi everyone, Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host environment, 2 jails. Our problem: While we can send email from the command line just fine in one of the jails,...
6
by: sellam | last post by:
I just installed to a new server and am trying to iron out certain bugs. Right now I have a problem with the mail function. I always get a FALSE return value when I call the mail function. ...
1
by: crescent_au | last post by:
I am developing a simple mailing system. This requires sending emails in HTML format to one or more recipient. I am currently using PHP's mail() function. It works alright but it doesn't seem...
13
Nert
by: Nert | last post by:
hello every one, i need help.. how can i use the mail() funtion in php? when ever i execute the mail function i continuesly receive this error message: what do i need to do in order for me...
2
by: vssp | last post by:
Hai friends When I send the mail with out from address by default it get "nobody@hostname.com . We need to hardcode the from address . But I dont want to edit the php file . Any Possiblity to edit...
1
by: Abersparky | last post by:
Can someone help me with the mail() function??? The below is just to get myself going but I can't seem to get it working... is there something else I should be doing? I checked phpinfo() and the...
0
by: Ahmad | last post by:
Hello, can any one help me with the following issue: I use PHP mail function to send emails, when I receive these emails I find some exclamation marks (!) added in the text, this is weird. Can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.