Net::SMTP

Discussion in 'Perl Misc' started by Christophe, Sep 20, 2004.

  1. Christophe

    Christophe Guest

    Hello,

    I used Net::SMTP for send Mail,

    sub ProgSMTPUSER {
    my ($dest) = @_;
    my $destuser = $dest."\@test.com";
    my $from = "test\@telebec.com";
    my $smtp = Net::SMTP->new("$SrvExch");
    $smtp->mail($from);
    $smtp->to($destuser);
    $smtp->data();
    $smtp->datasend("To: $destuser\n");
    $smtp->datasend("From: $from\n");
    $smtp->datasend("Subject: RAPPORT VPN\n");
    $smtp->datasend("\n");
    $smtp->dataend();
    $smtp->quit;
    return;
    }

    Result :
    From :
    Date : Neant
    To :
    Subject :RAPPORT VPN

    How for have the Date not equal NEANT ?




    Bye
    christophe
    Christophe, Sep 20, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    1,048
    Roedy Green
    Jan 24, 2006
  2. Alex Hunsley
    Replies:
    4
    Views:
    3,408
    Tim Williams (gmail)
    Jun 29, 2004
  3. Raaijmakers, Vincent \(GE Infrastructure\)

    RE: sending of mail (smtp) - connection refused - but smtp serveris running!

    Raaijmakers, Vincent \(GE Infrastructure\), Jun 29, 2004, in forum: Python
    Replies:
    0
    Views:
    862
    Raaijmakers, Vincent \(GE Infrastructure\)
    Jun 29, 2004
  4. Copelandia Cyanescens

    smtplib.SMTP "no attributes SMTP"

    Copelandia Cyanescens, Jul 31, 2004, in forum: Python
    Replies:
    2
    Views:
    1,384
    Copelandia Cyanescens
    Jul 31, 2004
  5. tshad
    Replies:
    1
    Views:
    877
    bruce barker
    May 5, 2008
Loading...

Share This Page