Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Sendmail to non-working email address

by true (Pilgrim)
on Sep 04, 2003 at 18:27 UTC ( [id://288967]=note: print w/replies, xml ) Need Help??


in reply to Sendmail to non-working email address

Ok, this is my best solution so far. I'm using open2. Now i get a response when i send a mail to a bad address (bad meaning the remote server is not accepting mail for the address given). This tested fine under RedHat 7.2.
sub SendMail{ my %MAIL = @_; my $RESULT = "SendMail to".$MAIL{'TO'}; use IPC::Open2; open2(*READA,*WRITEA,"/usr/lib/sendmail -oi -t"); print WRITEA "To:$MAIL{'TO'}\n"; print WRITEA "From:$MAIL{'FROM'}\n"; print WRITEA "Subject:$MAIL{'SUBJECT'}\n\n"; print WRITEA "$MAIL{'BODY'}\n"; close WRITEA; while ($line = <READA>){$RESULT .= "<li>$line\n";} close READA; return $RESULT; }############################ end SendMail
jtrue

Replies are listed 'Best First'.
•Re: Re: Sendmail to non-working email address
by merlyn (Sage) on Sep 04, 2003 at 18:41 UTC
    Where do you get the parameters to this subroutine? Please dear gawd, don't say "from a web form". Argh!

    If so, you've just created a spam engine.

    Have you actually read any of the answers to your post? You appear to be ignoring the fundamental problem.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Re: Re: Sendmail to non-working email address
by smellysocks (Beadle) on Sep 04, 2003 at 19:38 UTC
    Please try your test with @aol.com addresses.

    Last time I heard AOL accepts ALL email address to the aol.com domain, and deals with dumping it later.

    Please correct me if I'm wrong.

    IMHO the only method that works are the procedures blue_cowdawg and merlyn outlined.

    The user must receive an email with a Unique identifer, and respond with that secret and unique "key" (preferable non-guessable and random).
      Hi smellysocks!

      The only time AOL does not accept the message is if originating machine is in their black list - then they 550 it at the connection. Otherwise they accept and notify in the bounce message as you surmise.

      jdtoronto

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://288967]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found