Loading ...
Sorry, an error occurred while loading the content.

Re: $Server->Mail() and specifying mailhost

Expand Messages
  • Josh Chamas
    ... How about about setting the config at runtime, like: $Server- Config( MailHost , $your_mailhost); Do this just before the $Server- Mail(). If you really
    Message 1 of 2 , Sep 11, 2002
      Broc Seib wrote:
      > 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,
      > );

      How about about setting the config at runtime, like:

      $Server->Config('MailHost', $your_mailhost);

      Do this just before the $Server->Mail(). If you really
      need this in the $Server->Mail routine, let me know,
      and we can probably add something there too.

      Note that currently, the MailHost config will become
      cached in the ASP object when it first gets used,
      so you will need to set your MailHost only once, like in
      Script_OnStart for example, but that the MailHost will
      persist for subsequent Server->Mail calls.


      Josh Chamas, Founder phone:925-552-0128
      Chamas Enterprises Inc. http://www.chamas.com
      NodeWorks Link Checking http://www.nodeworks.com

      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    Your message has been successfully submitted and would be delivered to recipients shortly.