Announcement

Collapse
No announcement yet.

Help needed on Mail() issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.
    Brent
    ||||

    Comment


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

      Comment

      Working...
      X