1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice
  2. The hosting section is sponsored by Hostwinds visit the BHW Partnership program for your exclusive BHW member hosting benefit today.
    MUST be signed into your BHW account.
    Dismiss Notice

Can't use the mail() function from my web hosting

Discussion in 'Web Hosting' started by Red Yonko, Oct 27, 2019.

  1. Red Yonko

    Red Yonko Registered Member

    Joined:
    Oct 15, 2019
    Messages:
    66
    Likes Received:
    5
    Gender:
    Male
    Location:
    In The Cursed Light Theme
    Home Page:
    I could until yesterday but now it seems that when i use my mail() function to my gmail, it just never arrives. Is there anything I should do?
     
  2. h4tcargo

    h4tcargo Jr. VIP Jr. VIP

    Joined:
    Apr 30, 2019
    Messages:
    110
    Likes Received:
    20
    Gender:
    Male
    Ask your host to check mail logs for your account
    They should usually see more than you and check if your emails are getting bounce backs, rejections or etc.
     
  3. stromind

    stromind Jr. VIP Jr. VIP

    Joined:
    Oct 1, 2018
    Messages:
    336
    Likes Received:
    81
    Gender:
    Male
    Occupation:
    system administrator
    Location:
    localhost
    Home Page:
    you can use smtp instead, most of the hosting providers block mail function due to spam
     
  4. GoGuerilla

    GoGuerilla Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2018
    Messages:
    397
    Likes Received:
    174
  5. FostexKiller

    FostexKiller Jr. VIP Jr. VIP UnGagged Attendee

    Joined:
    Dec 4, 2012
    Messages:
    101
    Likes Received:
    57
    Location:
    UK
    Yeah +1 for Amazon SES.

    If you're using WordPress you can set it up to bypass the mail() function straight to Amazon SES's SMTP: https://en-gb.wordpress.org/plugins/wp-ses/
     
  6. paradagondax

    paradagondax Newbie

    Joined:
    Oct 19, 2019
    Messages:
    4
    Likes Received:
    1
    Location:
    Europe
    Relying on the mail function of the host is not a good practice nowadays as they are often not configured correctly. Better use your own SMTP server or a service like Mailgun.
     
  7. Flegy

    Flegy Newbie

    Joined:
    Dec 6, 2018
    Messages:
    34
    Likes Received:
    6
    Location:
    Croatia
    Home Page:
    Try send to other provider maybe Gmail full block email.
     
  8. Red Yonko

    Red Yonko Registered Member

    Joined:
    Oct 15, 2019
    Messages:
    66
    Likes Received:
    5
    Gender:
    Male
    Location:
    In The Cursed Light Theme
    Home Page:
    Ok thank you guys, no im not using wordpress, i only use the mail() from a php file.
     
  9. kaurr

    kaurr Registered Member

    Joined:
    Oct 25, 2015
    Messages:
    76
    Likes Received:
    36
    Location:
    Estonia
    you need something that deliver the php mail to the destination, postfix or sendmail, if you have ssh access to your server you can install them by yourself. Usually just installing sendmailer and using default configuration of it will fix the issue (no hardcore knowledge needed)