Click here to get back home

Sendmail

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Sendmail Deepan Perl XML Parser 04-10-2008
Get Chitika Premium
Posted by Deepan Perl XML Parser on April 10, 2008, 1:20 am
Please log in for more thread options
my $email = populateEmail("test");
print $email;

open(SENDMAIL, "|/usr/lib/sendmail -oi -t -i") or print "cannot open
SENDMAIL: $!";
print SENDMAIL <<"EOF";
To: $
Subject: [SUSTAINING TICKET] Case
Content-type: text/html
        testing
EOF
        close(SENDMAIL);

The above code results in "No recipient address found in header"
but when i replace $ with direct address say deepan.
17\@gmail.com it works fine.

populateEmail function's code is available below:

sub populateEmail {
if(lc($_[0]) eq "test") {
                                return ("deepan.17\@gmail.com");
         }
}

Can anyone spot the bug?

Similar ThreadsPosted
sendmail Help Please July 31, 2005, 3:13 pm
sendmail September 28, 2005, 4:35 pm
CGI/sendmail help January 2, 2006, 8:01 am
Help! Sendmail on Mac OS X Server October 12, 2004, 3:53 pm
Mail::Sendmail August 31, 2005, 12:33 pm
Perl and Sendmail May 9, 2006, 10:49 am
problems cgi and sendmail January 21, 2007, 12:36 am
sendmail issue September 20, 2007, 3:02 pm
Formmail.pl - Sendmail vs. Smtp August 23, 2004, 6:58 pm
Net::NIS crashing with Sendmail::Milter November 5, 2004, 5:02 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap