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. Advertisements

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. Almir
    Replies:
    0
    Views:
    862
    Almir
    Dec 10, 2003
  2. RandRace

    net::smtp

    RandRace, Jul 27, 2004, in forum: Perl
    Replies:
    2
    Views:
    919
  3. bivin
    Replies:
    1
    Views:
    872
    venkat
    Jun 27, 2003
  4. Robert Hanson

    Help Needed with SMTP mail in ASP.Net

    Robert Hanson, Jul 23, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    422
    Robert Hanson
    Jul 23, 2003
  5. Replies:
    3
    Views:
    1,317
    Roedy Green
    Jan 24, 2006
  6. Alex Hunsley
    Replies:
    4
    Views:
    4,473
    Tim Williams (gmail)
    Jun 29, 2004
  7. Copelandia Cyanescens

    smtplib.SMTP "no attributes SMTP"

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