*Urgent*! PHP mail() not delivering to yahoo or aol, but gmail is GREAT!

Status
Not open for further replies.

trickmaster

New Member
Messages
12
Reaction score
0
Points
0
Hello everyone,

This is probably my first time asking a question on forums even though I would like a answer from x10hosting's staff, but they dont seem to have a personal submit a ticket support centre :(

So i have to ask here....I am using Intermediate PHP level, and I can use the mail() function. But! I can only send emails one at a time to yahoo and aol, and I need to send not sepearte emails but all-together for my php newsletter.

So here is a quote from a helpful person at Flashkit.com Forums

from the mail received:

Received: (qmail invoked by alias); 05 Oct 2008 06:30:24 -0000
Received: from cossacks.x10hosting (EHLO cossacks.x10hosting.com) [74.86.116.190]
by mx0.gmx.net (mx043) with SMTP; 05 Oct 2008 08:30:24 +0200
Received: from rk by cossacks.x10hosting.com with local (Exim 4.69)
(envelope-from <rk@cossacks.x10hosting.com>)
id 1KmN8I-0000xp-OS
for *-----------* ; Sun, 05 Oct 2008 02:29:59 -0400
To: *---------------*
Subject: Confirm Registration for a Rohobot Kids Account
From: noreply@rohobotkids.com
Message-Id: <E1KmN8I-0000xp-OS@cossacks.x10hosting.com>
Date: Sun, 05 Oct 2008 02:29:59 -0400

While your visible sender address is noreply@rohobotkids.com, the envelope sender is rk@cossacks.x10hosting.com. Now, that server does neither accept mail, nor publish an MX record (send mail destined for me to <server address>), so this means one cannot send mail to that alleged sender. Some recipient servers simply refuse to accept mail in that case - somewhat rightful: once a server accepts mail, it takes responsibility for delivery to the destination or getting a non-delivery report back. Now, the route for the NDR is barred.

Some php installations accept a 5th parameter to mail that could be used to set the envelope sender to an existing account that is able to accept mail.
Others might allow configuration through htaccess files.
Your hosting company should know that.

As you see this is a hosting company's issue and I would love a solution for this, either it be how to write the 5th paramater, or some how enabling the email to recieve emails since the cossacks@x10hosting.com does not recieve email yahoo and aol dont accept mail at all.

But I did a test run with php, and the mails were recieved seperately but never have been together.

Oh and one more note, gmail is the BEST! It has recieved every single email I have sent and ON TIME instantly! But yahoo and aol take either from 4 mins. to 26 hours and if not sometimes i never get the email!


Please help!

Thanks in advance.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Maybe moving this to the support section...
 

freecrm

New Member
Messages
629
Reaction score
0
Points
0
Oh and one more note, gmail is the BEST! It has recieved every single email I have sent and ON TIME instantly! But yahoo and aol take either from 4 mins. to 26 hours and if not sometimes i never get the email!


Please help!

Thanks in advance.

I have exactly the same issues but I use X-Sender headers which help a little I think.

Yahoo still allocates it as spam though.
 

trickmaster

New Member
Messages
12
Reaction score
0
Points
0
Oh, hello

Sorry for responding so late, but my question is how do I use x-sender headers?

I searched all over the internet, very little help or info.

I think it's okay as long as the mail is received by yahoo, since I could tell me users to add the email address to non-spam.

Thanks
 

freecrm

New Member
Messages
629
Reaction score
0
Points
0
PHP:
<?php
  $contactemail = "someone@somewhere.com";

  $headers  = 'MIME-Version: 1.0' . "\n";
  $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
  $headers .= "Content-Transfer-Encoding: 7bit\n"; 
  $headers .= 'From: You(you@cossacks.com)' . "\n";
  $headers .= 'Reply-To: you@cossacks.com' . "\n";
  $headers .= 'Return-Path:'.$contactemail . "\n";
  $headers .= 'X-Sender: '.$contactemail. "\n";
  $headers .= 'X-Mailers: PHP /'.phpversion() . "\n";

  $subject = "whatever subject";
  
  $message  = '
  whatever message  
   ';
  

  ini_set(sendmail_from,$contactemail);

  if (@mail('You <'.$contactemail.'>',stripslashes($subject),stripslashes($message),stripslashes($headers)))
  {
    echo ('<h1>Sent</h1><p>This email has been successfully sent to ' . $contactemail . '.</p>');
  }
  else
  {
    echo ('<h1>Sorry!</h1><p>Your message has failed to send to ' . $contactemail . '. Please try again later.</p>');
  }


  ini_restore( sendmail_from );

?>
 

trickmaster

New Member
Messages
12
Reaction score
0
Points
0
thanks for that, but unfortunately still wont work.

i get the gmail, but no yahoo
 

trickmaster

New Member
Messages
12
Reaction score
0
Points
0
actually, update:

yahoo, and aol recieved emails... but like hours later. aol got it at 6 pm, yahoo got it at 10 pm.

Any way to fix that?
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
no. its just their filters and the bandwith on the site. it has nothing to do with the function
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Locked and recent posts deleted. As was said this is nearly 3 years old.

misson: feel free to PM me if you need a moderator in future.
 
Last edited:
Status
Not open for further replies.
Top