Closed Thread
Results 1 to 2 of 2

Thread: mail() Again

  1. #1
    1986mi35 is offline x10Hosting Member 1986mi35 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    6

    mail() Again

    Hello there I have contacted you a two days ago,enquireing about the mail() funtion, as it is not working... I did get a reply, but it did not solve my problem, I did post and coment to witch I got no responce. I then looked thrue the forums and support requests, all I found was people with the same problem and no solution. You guys are saying that the funciton is enabled, well its not working, this is not due to the spam. I checked the function in following maner if(!mail(xyz)){echo "error";} I am getting an error. This demostrates that there is a problem with function. Can you please provide me with a solution, or a date when you guys will look into it, because my website is depending on sending email ...

  2. #2
    1986mi35 is offline x10Hosting Member 1986mi35 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    6

    Re: mail() Again

    Right the mail function appears to be working now. Thank you for restoring this service.
    Here is the code that works, for anyone who might be intrested.

    Download php mailer from the link below
    http://code.google.com/a/apache-extr...downloads/list

    require("PHPMailer_5.2.0/class.phpmailer.php");
    $mail = new PHPMailer();

    $mail->From = "your_emaila_ccount@your_domain.com";
    $mail->FromName = "Admin";
    $mail->AddAddress("examle@example.com"); // This is the adress to witch the email has to be send.
    $mail->Subject = "An HTML Message";
    $mail->IsHTML(true); // This tell's the PhPMailer that the messages uses HTML.
    $mail->Body = "Hello, <b>my friend</b>! \n\n This message uses HTML !";
    $mail->AltBody = "Dear Sir/Madam \n\n This message uses HTML, but your email client did not support it !";

    if(!$mail->Send()) // Now we send the email and check if it was send or not.
    {
    echo 'Message was not sent.';
    echo 'Mailer error: ' . $mail->ErrorInfo;
    }
    else
    {
    echo 'Message has been sent.';
    }

Closed Thread

Similar Threads

  1. Replies: 0
    Last Post: 06-29-2011, 02:54 PM
  2. php info and php mail() function, route to mail from server
    By fammking.mak17 in forum Free Hosting
    Replies: 0
    Last Post: 02-22-2011, 03:50 AM
  3. Replies: 1
    Last Post: 10-04-2010, 02:46 PM
  4. Replies: 1
    Last Post: 09-30-2009, 10:52 AM
  5. 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