Help for this page

Select Code to Download


  1. or download this
    $from = 'sales@domain.com';
    $toaddress = 'fredflintstone@disney.com';
    ...
    
    $smtp->mail('$from\n");
    $smtp->to("$toaddress\n");
    
  2. or download this
    $smtp->data();
    $smtp->datasend("To: $name <$toaddress>\n");
    ...
    $smtp->datasend("X-Order-IP: $ENV{REMOTE_ADDR}\n");
    $smtp->datasend("\n");
    $smtp->datasend("Hi $name,\n");