I can send the email through the command line like so:
Expand|Select|Wrap|Line Numbers
- 220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 6 Aug 2008 18:44:29 -0600
- EHLO www.dmconsultingonline.com 250-localhost.localdomain Hello mail.dmconsultingonline.com [x.x.x.x], pleased to meet you 250-ENHANCEDSTATUSCODES
- 250-PIPELINING
- 250-8BITMIME
- 250-SIZE
- 250-DSN
- 250-ETRN
- 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
- 250-DELIVERBY
- 250 HELP MAIL
- FROM: dmurad@dmconsultingonline.com
- 250 2.1.0 dmurad@dmconsultingonline.com... Sender ok
- RCPT TO: dmurad@dmconsultingonline.com
- 250 2.1.5 dmurad@dmconsultingonline.com... Recipient ok
- DATA
- 354 Enter mail, end with "." on a line by itself
- THIS IS A TEST email to dmurad
- .
- 250 2.0.0 m770iTb2013039 Message accepted for delivery
- QUIT
- 221 2.0.0 localhost.localdomain closing connection
Note: in outlook I do have to set "My Outgoing server requires authentication"
and it uses the same login as for POP.
I know this makes a difference, but outlook doesn't tell you "technically" what difference that check mark makes.
without this outlook doesn't connect to it.
but, anyway:
PHP Code (this is from example that comes with PHPMailer):
[PHP]
require_once("config.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "72.16.128.45"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "dmurad"; // SMTP username
$mail->Password = "connie02"; // SMTP password
$mail->From = "dmurad@dmconsultingonline.com";
$mail->FromName = "Mailer";
$mail->AddAddress("dmurad@dmconsultingonline.com");
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the HTML message body <b>in bold!</b>";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
if(!$mail->Send())
{
echo "<b>Message could not be sent. </b><p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
[/PHP]
here's the output:
Expand|Select|Wrap|Line Numbers
- SMTP -> FROM SERVER:
- SMTP -> FROM SERVER:
- SMTP -> ERROR: EHLO not accepted from server:
- SMTP -> FROM SERVER:
- SMTP -> ERROR: HELO not accepted from server:
- SMTP -> FROM SERVER:
- SMTP -> ERROR: MAIL not accepted from server:
- SMTP -> FROM SERVER:
- SMTP -> ERROR: RSET failed: Message could not be sent.
- Mailer Error: The following From address failed: dmurad@dmconsultingonline.com
any clues?