|
-
Feb 22nd, 2006, 02:17 PM
#1
Thread Starter
Fanatic Member
[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();
?>
-
Feb 22nd, 2006, 06:02 PM
#2
Re: Help needed trying to set up a phpmailer script on Linux
What mailer are you using?
-
Feb 22nd, 2006, 09:12 PM
#3
Thread Starter
Fanatic Member
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 ???
-
Feb 23rd, 2006, 01:35 AM
#4
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.
-
Feb 23rd, 2006, 08:36 AM
#5
Thread Starter
Fanatic Member
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|