perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Broc Seib <bs...@icd.ics.purdue.edu>
Subject $Server->Mail() and specifying mailhost
Date Tue, 10 Sep 2002 03:06:59 GMT
I want to specify my mail host at the moment I call $Server->Mail();

I see I can pass in some %smtp_args to the Net::SMTP new() constructor:

  $Server->Mail({
    'To' => $to,
    'From' => $from,
      :
      :
    },
    %smtp_args,
  );

But looking at the code of Net::SMTP (version 2.19) it only accepts as
a scalar first argument the name of the mailhost. Net::SMTP::new does
this by checking to see if there are an odd number of args in @_;

Anyhow, I'd like to be able to do this like:

  $Server->Mail({
    'To' => $to,
    'From' => $from,
      :
      :
    },
    mailhost,
    %smtp_args,
  );

Comments anyone?
-broc

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message