Perl Net::SMTP How do i have the subject of an email show

Discussion in 'Perl' started by Almir, Dec 10, 2003.

  1. Almir

    Almir Guest

    I hate this Net::SMTP stuff, everything works fine but for the suject
    field. I see no way of having it show in an email when sent. Has
    anyone had this problem, can anyone explain why there are no
    documentations on smtp or better ones at least. I just need the
    subject field to show.

    $smtp = Net::SMTP->new('some.your.com');
    $smtp->mail ($mailfrom);
    #the administrator's email goes here
    $smtp->to('');
    $smtp->data();
    $smtp->datasend("To: mine\@your.com\n");
    $smtp->datasend("\n");
    $smtp->datasend("Status: ");
    $smtp->datasend($tokens{"status"});
    $smtp->datasend("\n");
    Almir, Dec 10, 2003
    #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. Andee Weir
    Replies:
    10
    Views:
    56,919
    AltaGid
    Aug 13, 2007
  2. Dan Polansky
    Replies:
    4
    Views:
    2,679
    Dan Polansky
    Apr 22, 2005
  3. =?ISO-8859-2?Q?Grzegorz_=A6lusarek?=

    sending email with charset utf-8 but subject is not coded properly

    =?ISO-8859-2?Q?Grzegorz_=A6lusarek?=, Apr 14, 2006, in forum: Python
    Replies:
    1
    Views:
    6,163
    Rene Pijlman
    Apr 14, 2006
  4. Paul Ponzelli
    Replies:
    4
    Views:
    445
    Paul Ponzelli
    Sep 28, 2007
  5. ashish makani
    Replies:
    5
    Views:
    564
    Mark Lawrence
    Sep 20, 2012
Loading...

Share This Page