Results 1 to 5 of 5

Thread: [RESOLVED] Help needed trying to set up a phpmailer script on Linux

  1. #1

    Thread Starter
    Fanatic Member jcavard's Avatar
    Join Date
    Jul 2005
    Location
    Quebec, CANADA
    Posts
    534

    Resolved [RESOLVED] Help needed trying to set up a phpmailer script on Linux

    Hi!

    I'm trying to set up a phpmailer script on a linux system. I'm having some issue when sending mail. I get no error whether I use

    Code:
    $mail->Mailer   = "mail";
    Code:
    $mail->Mailer   = "sendmail";
    Code:
    $mail->Mailer   = "smtp";
    as if it would be sent successfully, however I don't receive any email..... here is my code. Thank y'all

    Code:
    <?php 
    require("class.phpmailer.php");
    
    $mail = new phpmailer();
    
    $mail->From	 = "[email protected]";
    $mail->FromName = "List manager";
    $mail->Host	 = "localhost";
    $mail->Mailer   = "smtp";
    
    // HTML body
    $body  = "Hello <font size=\"4\">FULL_NAME</font>, <p>";
    $body .= "<i>Your</i> personal photograph to this message.<p>";
    $body .= "Sincerely, <br>";
    $body .= "phpmailer List manager";
    
    // Plain text body (for mail clients that cannot read HTML)
    $text_body  = "Hello FULL_NAME, \n\n";
    $text_body .= "Your personal photograph to this message.\n\n";
    $text_body .= "Sincerely, \n";
    $text_body .= "phpmailer List manager";
    
    $mail->Body	= $body;
    $mail->AltBody = $text_body;
    $mail->AddAddress("[email protected]", "FULL_NAME");
    $mail->AddAddress("[email protected]", "FULL_NAME");
    //$mail->AddStringAttachment($row["photo"], "YourPhoto.jpg");
    
    if(!$mail->Send())
    	echo "There has been a mail error";
    
    // Clear all addresses and attachments for next loop
    $mail->ClearAddresses();
    $mail->ClearAttachments();
    
    ?>
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    accoustic emo-rock band: a tailormade fable

    Visual Studio 2003 / Framework 1.1

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Help needed trying to set up a phpmailer script on Linux

    What mailer are you using?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Fanatic Member jcavard's Avatar
    Join Date
    Jul 2005
    Location
    Quebec, CANADA
    Posts
    534

    Re: Help needed trying to set up a phpmailer script on Linux

    I need to add attachement to the mail, so I first thought I had to go with SMTP, is it right???

    anyway, I tried 3 of them and I get suyccess message and no mail delivered..
    do I have to setup anything else ???
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    accoustic emo-rock band: a tailormade fable

    Visual Studio 2003 / Framework 1.1

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Help needed trying to set up a phpmailer script on Linux

    Mail is always sent via stmp, regardless of the application. If you tell me which mailer script you are using I might be able to help.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    Fanatic Member jcavard's Avatar
    Join Date
    Jul 2005
    Location
    Quebec, CANADA
    Posts
    534

    Re: Help needed trying to set up a phpmailer script on Linux

    PHPMailer that is...

    but I got it working... don't ask me what I was doing wrong, but it works just great now...
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    accoustic emo-rock band: a tailormade fable

    Visual Studio 2003 / Framework 1.1

Posting Permissions

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



Click Here to Expand Forum to Full Width