Net::SMTP::TLS results "EHLO command failed: 220 We do not authorize the use of this system to transport unsolicited, at cgicgi-akun.cgi line 855"



Dear my friends...

I am trying to sending an e-mail with Perl::CGI.

But It does not work as I expect. This is the error message:
EHLO command failed: 220 We do not authorize the use of this system to
transport unsolicited,
at cgicgi-akun.cgi line 855

line 855 contains:
$smtp = Net::SMTP::TLS->new(
'mail.penguin-teknologi.com',
# may need a helo parameter here on some servers
Timeout => 9999,
Debug => 0,
);

What is my mistake?

Please tell me.

Thank you very much in advance.

ps: This is the routine.
====
#!/usr/bin/perl -w
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
use DBI;
use Net::SMTP::TLS;
use MIME::Base64;

.......
&kirimemail($mynamalengkap,$myemail,$daslink);
.......

sub kirimemail{
my $mymynamalengkap=shift;
my $mymyemail=shift;
my $mymylinknya=shift;
my $mymetaemail=&metaemail($mymyemail);
my $smtpserver="mail.penguin-teknologi.com";
my $smtpport=25;
my $sender="MOHON JANGAN REPLY E-MAIL INI
\<no-reply\@penguin-teknologi.com\>";
my $subject="Please confirm the registration for joining Online-Science.Org
Community";
my $header="X-Mailer";
my $headervalue="Perl SendMail Module 1.09";
my $berkas="akun/konfir-email";
my $user="penguin-teknologi\@penguin-teknologi.com";
my $passwd="*****";
my($smtp,$mailbodydata,%mail);
open(MASUKAN, "<$berkas");
while(<MASUKAN>){
s/{{NamaLengkap}}/$mymynamalengkap/g;
s/{{Link-nya}}/$mymylinknya/g;
s/{{emailnya}}/$mymyemail/g;
$mailbodydata.=$_;
}
print "<tr><td align=\"center\" valign=\"top\" colspan=2>
<table border=1 cellspacing=0 cellpadding=0 width=400 align=\"center\"
bgcolor=\"purple\">
<tr><td align=\"center\">";
print header;
print start_html("Environment");
print "</td></tr>
</table>
</td></tr>";
#Keep debug off in order for web and email to both work correctly on large
messages
$smtp = Net::SMTP::TLS->new(
'mail.penguin-teknologi.com',
# may need a helo parameter here on some servers
Timeout => 9999,
Debug => 0,
);
$smtp->datasend("AUTH PLAINTEXT\n");
$smtp->response();

# -- Enter sending email box address username below. We will use this to
login to SMTP --
$smtp->datasend(encode_base64("$user"));
$smtp->response();
# -- Enter email box address password below. We will use this to login to
SMTP --
$smtp->datasend(encode_base64("$passwd"));
$smtp->response();
# -- Enter email FROM below. --
$smtp->mail("$sender");
# -- Enter email TO below --
# $smtp->to("$mymetaemail");
$smtp->to("$mymyemail");
$smtp->data();

#This part creates the SMTP headers you see
$smtp->datasend("To: $mymetaemail\n");
$smtp->datasend("From: $sender\n");
$smtp->datasend("Content-Type: text/html \n");
$smtp->datasend("Subject: $subject");

# line break to separate headers from message body
$smtp->datasend("\n");
$smtp->datasend("$mailbodydata");
$smtp->datasend("\n");
$smtp->dataend();
$smtp->quit;
}
.



Relevant Pages

  • SSH AIX 4.3.3 Problem
    ... I have this problem with SSH 3.2.0, it seems that I can not login to ... Note that the host specific files ...
    (SSH)
  • Re: Application.Run
    ... static void Main ... If I leave it Login() then I can debug the app and it ... It is in debug mode. ...
    (microsoft.public.dotnet.languages.csharp)
  • Sid libpam-ldap, pam.d files
    ... I'm working on trying to get local and remote logins via ldap on a ... included common-* files for passwd, session, auth and account. ... snippit from the slapd logs regarding ACL's and a failed login attempt. ... account sufficient pam_ldap.so debug ...
    (Debian-User)
  • Re: Session or browser problem??
    ... The login request is submitting a form. ... Control, Expires, and Pragma headers as below. ... define any additional cache headers. ... redirected back to referring page.At this point,the referrin page ...
    (comp.lang.php)
  • Re: help! http::geturl on linux chokes on a url string that Windows XP accepts
    ... (I am actaully using tclwebtest 1.0 package. ... Again, with snippet C, only Windows XP (and not Linux) gets to the ... Linnux just hangs with no message after my debug print statment. ... add_referer_header headers $previous_url ...
    (comp.lang.tcl)