Error: RCPT TO: error (550 relay not permitted)



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";

============================================


.



Relevant Pages

  • Re: Macro to force plain text reply in O2K?
    ... Why force HTML on people who send you plain text on purpose? ... want nor be able to receive HTML mail. ... Milly Staples [MVP - Outlook] ...
    (microsoft.public.outlook)
  • Re: attachment added to out going mail
    ... > I did as you suggested and disabled the email scan part of my anti-virus ... text and set to read in plain text. ... If you change your Read view you open yourself to invasive practices in HTML ... To read an HTML mail if you read in plain text hit the Alt,V, then H keys. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • RE: Entourage 2004 HTML printing problems
    ... >> The headers show up when printing plain text or basic HTML text mail. ... issues related to HTML mail. ...
    (microsoft.public.mac.office.entourage)
  • Re: can you pass an array in a form in Perl
    ... A Perl array has structure (this as nothing to do with HTML). ... To store something with structure in a plain text string you need to ...
    (perl.beginners)
  • Styling plain text
    ... If I want to start my HTML mail with plain text, but don't want to use a then how can I apply a style to the "plain text" before my first? ... The reason that I have to style the email is because SMTP mail appears different from the native mail mechanism, and I'm trying to get close to the Native format. ...
    (comp.infosystems.www.authoring.stylesheets)