Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
multiple mail send function error
Old 07-14-2009, 03:36 PM multiple mail send function error
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
not sure if this should be under php or hosting

i have a script with two mail(..) function and they fall into a condition

PHP Code:

if (mail(..)) {
echo 
'Sent';

if(
mail(..)) {
echo 
'Sent 2';
}

the script works on one of our server but on another we keep getting an error on the second send

it outputs

Sent
phpinfo() body {background-color: #ffffff; color: #000000;} body, td, th, h1, h2 {font-family: sans-serif;} pre {margin: 0px; font-family: monospace;} a:link {color: #000099; text-decoration: none; background-color: #ffffff;} a:hover {text-decoration: underline;} table {border-collapse: collapse;} .center {text-align: center;} .center table { margin-left: auto; margin-right: auto; text-align: left;} .center th { text-align: center !important; } td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;} h1 {font-size: 150%;} h2 {font-size: 125%;} .p {text-align: left;} .e {background-color: #ccccff; font-weight: bold; color: #000000;} .h {background-color: #9999cc; font-weight: bold; color: #000000;} .v {background-color: #cccccc; color: #000000;} .vr {background-color: #cccccc; text-align: right; color: #000000;} img {float: right; border: 0px;} hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;} Warning: mail() [function.mail]: Failed to connect to mailserver at "<IP HERE>" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in on line 20

The arguements in both function is the exact same and we only receive one email..

we've configured both server's smpt and php.ini to be the same, resetted and waited overnight but still same problem....

anybody had experiences on this?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-16-2009, 06:28 PM Re: multiple mail send function error
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
The only possibility I can think of is that maybe if the script is running from a shared hosting environment that the server's SMTP engine is preventing multiple emails to be sent out in the same session. Could be a prevention for outgoing spam. Check with your hosting support.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to multiple mail send function error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62773 seconds with 12 queries