Error: RCPT TO: error (550 relay not permitted)
- From: "Frank J. Russo" <FJRussonc@xxxxxxxxxxxxx>
- Date: Sat, 11 Feb 2006 18:39:08 GMT
Copied the below code straight from a web source (
http://alma.ch/perl/Mail-Sendmail-FAQ.html#HTML ) on sending html emails w/
PERL. The ONLY change I made was to put GOOD email addresses in the TO /
From
I am getting the following errror and need help?
---------Error: RCPT TO: error (550 relay not permitted) -------------
=======================================
use MIME::QuotedPrint;
use HTML::Entities;
use Mail::Sendmail 0.75; # doesn't work with v. 0.74!
$boundary = "====" . time() . "====";
$text = "HTML mail demo\n\n"
. "This is the message text\n"
. "Voilà du texte qui sera encodé\n";
%mail = (
from => 'me@xxxxxxxxxxxxxxxxxxxxxx (webmaster)',
to => 'my@xxxxxxxxx (Frank)',
subject => 'Test HTML mail',
'content-type' => "multipart/alternative; boundary=\"$boundary\""
);
$plain = encode_qp $text;
$html = encode_entities($text);
$html =~ s/\n\n/\n\n<p>/g;
$html =~ s/\n/<br>\n/g;
$html = "<p><strong>" . $html . "</strong></p>";
$boundary = '--'.$boundary;
$mail{body} = <<END_OF_BODY;
$boundary
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
$plain
$boundary
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>$html</html>
$boundary--
END_OF_BODY
sendmail(%mail) || print "Error: $Mail::Sendmail::error\n";
============================================
.
- Follow-Ups:
- Re: Error: RCPT TO: error (550 relay not permitted)
- From: DJ Stunks
- Re: Error: RCPT TO: error (550 relay not permitted)
- From: harryfmudd [AT] comcast [DOT] net
- Re: Error: RCPT TO: error (550 relay not permitted)
- Prev by Date: Re: System call fails in webserver
- Next by Date: HTTP 1.1 Support in LWP / ParallelUA
- Previous by thread: System call fails in webserver
- Next by thread: Re: Error: RCPT TO: error (550 relay not permitted)
- Index(es):
Relevant Pages
|