Results 1 to 3 of 3
  1. #1

    Default Help needed on Mail() issue

    HI,
    I have a script that uses the following code..and it fails beacause of the Mail() disabled command..
    I want to try and get it touse phpmailer.class which I have on the directory?

    Im not a programmer (i get by scratching around for ages..) can anyone give pointers?

    Main.php has this..

    function mailme($sendto,$sendername,$from,$subject,$sendmai lbody,$bcc="")
    {
    global $SERVER_NAME;
    $subject = nl2br($subject);
    $sendmailbody = nl2br($sendmailbody);
    $sendto = $sendto;
    if($bcc!="")
    {
    $headers = "Bcc: ".$bcc."\n";
    }
    $headers = "MIME-Version: 1.0\n";
    $headers .= "Content-type: text/html; charset=utf-8 \n";
    $headers .= "X-Priority: 3\n";
    $headers .= "X-MSMail-Priority: Normal\n";
    $headers .= "X-Mailer: PHP/"."MIME-Version: 1.0\n";
    $headers .= "From: " . $from . "\n";
    $headers .= "Content-Type: text/html\n";
    mail("$sendto","$subject","$sendmailbody","$header s");
    }


    Regards
    RIch

  2. #2

    Default

    php Mail function will not work as mail function is disabled on the server.
    Alternative to this is to use SMTP authentication in the scrip.

    If you are using CMS then it is easier to use SMTP authentication as most of the CMS have inbuilt option Or you can install cms plugins to switch email settings from phpmail to smtp authentication.

    If you are using phpmail under contact form then we can provide you with a sample SMTP authentication contact script, which can be used for contact form.

    If you wish to go with sample contact scrip then you can drop an email to support [@] eukhost.com and we will provide the sample script with exact steps to configure it.

  3. #3

    Default

    Thanks, I figured it all out now.. Thank you (steep learning curve)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •