SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some direction

    Can I add another $message to this code so that I can have two different email noticification? Would I have to add a name to $subject?


    // send an email notification to the visitor
    $subject = $title;
    $message = file_get_contents("../content/email_messages/promotion.txt");
    eval('$message = stripSlashes("'.addSlashes($message).'");');
    send_email($email, $name, $setting_webmaster_email, $setting_site_name, $setting_webmaster_email, $subject, $message, 0);

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    send_email() is not a built-in PHP function, so we can only guess as to the functions available in the 3rd party class/package.

    Assuming it's just a wrapper to the mail() command, just call send_email() twice to send two mails.

  3. #3
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this code is connected to a form so after the user hit the submit button this code sends out an email. Can I send you the file?

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No, you'd have to pay me for that Let's keep the questions on the forum.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •