Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Unable to send to Hotmail using mail()

  1. #1
    ViperBlade is offline x10Hosting Member ViperBlade is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Tanus, France
    Posts
    93

    Unable to send to Hotmail using mail()

    Hey there. I'm currently unable to send E-mail to hotmail, however if I send to a mailinator address, it receives. Are there any specific headers I need to send email with?

    I'm currently using this function I've hased together myself:
    PHP Code:
    function email($to$subject$plain$html)
        {
        
    $semi_rand md5(time());
        
    $mime_boundary "==MULTIPART_BOUNDARY_$semi_rand";
        
    $mime_boundary_header chr(34) . $mime_boundary chr(34);

        
    $from "turnip@pervhunter.x10.mx";
        
    $body "This is a multi-part message in MIME format.

    --
    $mime_boundary
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    $plain

    --
    $mime_boundary
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    $html

    --
    $mime_boundary--";
        if (@
    mail($to$subject$body
        
    "From: " $from "\n" 
        
    "Return-Path: " $from "\n" .
        
    "Reply-To: " $from "\n" .
        
    "To: " $to "\n" .
        
    "Sent: " date("jS F Y, g:i a") . "\n" .
        
    "Sender: " "x10hosting.com" "\n" .
        
    "X-Priority: 1\n" .
        
    "X-MSMail-Priority: High\n" .
        
    "X-Mailer: PHP/" phpversion() . "\n" .
        
    "MIME-Version: 1.0\n" 
        
    "Content-Type: multipart/alternative;\n" 
        
    "    boundary=" $mime_boundary_header))
            {
            return 
    true;
            }
        else
            {
            return 
    false;
            }
        } 
    I used to be able to send to hotmail with an x10hosting account a couple of years ago with the following headers set.
    PHP Code:
    mail($email_address$subject$message"X-Mailer: PHP/" phpversion() . "
    X-SID-PRA: alerts@pervgallery.co.nr
    From: alerts@pervgallery.co.nr
    Return-Path: alerts@pervgallery.co.nr"

    Has sending to hotmail been taking away now?

    Thanks for reading

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Unable to send to Hotmail using mail()

    If memory serves hotmail and yahoo currently have us blacklisted; that wasn't done by choice on our part though. Despite all of our work trying to stop the spammers, they're still getting through occasionally, and since a lot of folks use hotmail and yahoo, they're the first to receive all the spam.

    We've already tried contacting them to resolve it; so far no dice


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    ViperBlade is offline x10Hosting Member ViperBlade is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Tanus, France
    Posts
    93

    Re: Unable to send to Hotmail using mail()

    First off: Amazing signature, lol

    Secondly, does this apply for paid hosting as well?
    Oddly enough I Hotmail receives from the webmail client in cpanel, so it being an x10 blacklisting doesn't quite make sense.

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: Unable to send to Hotmail using mail()

    The workaround is

    1. Set up a Google Apps account for your domain
    2. Set your mail settings to Google Apps (following the instructions on Google).
    3. Use PHPMailer or similar script to send the mail via SMTP through your Google Apps account.
    Nothing is always absolutely so.

  5. #5
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Unable to send to Hotmail using mail()

    First off, thanks Gotta love counting my suspensions

    Secondly, I'm not sure if it's blocked on paid or not; post the hotmail address you're using for testing and I can send one from my paid account to test though. The weird part is if it's getting it via the webmail client just fine, then why is it blocking it through mail...

    In any case descalzo's got the alternative - since gmail isn't blocked by us or by hotmail, you can utilize their email sending system instead


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  6. #6
    ViperBlade is offline x10Hosting Member ViperBlade is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Tanus, France
    Posts
    93

    Re: Unable to send to Hotmail using mail()

    Cool, thanks.
    My e-mail is <removed for privacy now that test is done>


    Edited by Livewire: Removed the email once I did the test so it remains private
    Last edited by Livewire; 02-09-2011 at 01:50 PM.

  7. #7
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Unable to send to Hotmail using mail()

    Test sent from a test file on my account (not through webmail). Lemme know if it works


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  8. #8
    ViperBlade is offline x10Hosting Member ViperBlade is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Tanus, France
    Posts
    93

    Re: Unable to send to Hotmail using mail()

    Yup, came through to the junk e-mail though.

  9. #9
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Unable to send to Hotmail using mail()

    Probably cause I didn't actually use appropriate headers and it did look a bit spammy XD


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  10. #10
    ViperBlade is offline x10Hosting Member ViperBlade is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Tanus, France
    Posts
    93

    Re: Unable to send to Hotmail using mail()

    lol. would you mind trying again with my headers?

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. unable to send mail
    By mrugeshrocks in forum Free Hosting
    Replies: 1
    Last Post: 04-05-2010, 05:10 PM
  2. PHP send mail - Unable to send to Yahoo! email addresses
    By royyuuki in forum Programming Help
    Replies: 7
    Last Post: 03-02-2010, 10:09 AM
  3. Unable to send mail
    By joe333 in forum Free Hosting
    Replies: 3
    Last Post: 12-22-2009, 08:30 PM
  4. Replies: 3
    Last Post: 12-03-2007, 08:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers