PHP Scripts Development » PHP Classes Support Forum

[closed]

Problem with the Attachment Mailer php Class v1.2

(2 posts)

Great offers not only for geeks!


  1. User has not uploaded an avatar

    spyros1234
    Member

    Hello

    I am trying to use the Attachment Mailer ver. 1.2 / nov. 2006

    I am uploading first the files and then I am sending them with this clash

    The problem is that I am getting this error message
    “Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /var/www/vhosts/dom.gr/httpdocs/bla/attach_mailer_class.php on line 280”

    Php script :

    require($_SERVER['DOCUMENT_ROOT']."/admin/attach_mailer_class.php");
    $test = new attach_mailer($name = "just me", $from = "mail@dom.gr", $to = "mail@dom.gr", $cc = "", $bcc = "", $subject = "Test text email with attachments");
    $test->text_body = "...Some body text\n\n the admin";
    $test->add_attach_file($_SERVER['DOCUMENT_ROOT']."/uploads/".$row_ekpedeftika_files['file_name']);
    $test->process_mail();

    Please help me !!!!

    Thank you!

    Posted 4 months ago #
  2. sorry for that answer: Don't try to program in safe mode, you will have problems with everything.

    Web hosting companies using that feature are lazy or don't have an idea what they are doing... :D

    My only advice, change the hosting

    Posted 4 months ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.