Closed Thread
Results 1 to 4 of 4

Thread: PHP Mail notifications

  1. #1
    cbminstrel80 is offline x10Hosting Member cbminstrel80 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    9

    PHP Mail notifications

    Hi,

    On my free site, I have a function where people can write in a form, and it should be sent as an email notification to the other site members. However, the emails aren\'t being sent out. My understanding is that PHP mail is used for this. Is there anything I need to switch on or adjust to allow this to happen?

    Many thanks!

    ---------- Post added at 08:36 PM ---------- Previous post was at 05:54 PM ----------

    Update: I tried changing the class in the config folder of my site to 'sendmail' rather than 'mail' to match it up with the PHP sendmail that is ticked as being part of the free hosting offered by x10hosting, but this hasn't resolved the issue.

    Any other suggestions?

  2. #2
    cbminstrel80 is offline x10Hosting Member cbminstrel80 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    9

    Re: PHP Mail notifications

    Update 2: I've spoken to the people who designed the applications on my site. They've told me that I need to speak to the host to find out how to access the PHP sendmail....how can I do this here? No one appears to have answered any mail based questions on the forum.

  3. #3
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: PHP Mail notifications

    Hello,

    php mail() must have the content type header present and set to text/plain to work.

    Thanks.


  4. #4
    cbminstrel80 is offline x10Hosting Member cbminstrel80 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    9

    Re: PHP Mail notifications

    Hi,

    As I'm a newb, I need some further help LOL

    Am I right in thinking this is the right code:

    $headers = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n";

    And if so, where would I put it?

    I have an email.php file as part of the set up on my server, but that seems to be a list of $config commands instead. Would it go under that list?

    Thanks!

    ---------- Post added at 01:20 AM ---------- Previous post was at 12:41 AM ----------

    Oookay....I've just found another email.php file in the core folder, and this has code that looks a lot more like the mail examples I've seen, and it's set by CodeIgniter....

    Problem is, it's a huuuuuuge document, and I have no idea where I would slot in the content-type header above

Closed Thread

Similar Threads

  1. Setting Up Mail Client
    By tjrana0 in forum Free Hosting
    Replies: 1
    Last Post: 05-21-2011, 06:59 PM
  2. cant send mail to my email address
    By nathanenglish532 in forum Free Hosting
    Replies: 0
    Last Post: 05-19-2011, 01:39 PM
  3. php mail
    By jonvfelosi25 in forum Free Hosting
    Replies: 1
    Last Post: 05-16-2011, 04:55 PM
  4. php mail function
    By rashid100_200081 in forum Free Hosting
    Replies: 0
    Last Post: 05-16-2011, 04:25 PM
  5. PHP mail function
    By r.c.diablo43 in forum Free Hosting
    Replies: 0
    Last Post: 05-16-2011, 08:07 AM

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