Announcement

Collapse
No announcement yet.

Sending Mail To Users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ArunK
    New Member
    • Dec 2004
    • 14
    • 3.0.6

    Sending Mail To Users

    When sending mail to users, How would I make it so it automatically adds a users username in the email?

    Would it be: "Hi $userid" or "Hi $username" or something else?
    THEN REST OF MESSAGE TEXT WOULD GO HERE

    So if I had a user named Bob, it would automatically write "Hi Bob"
    THEN REST OF MESSAGE TEXT WOULD GO HERE

    Thanks.
    WebDevShack.com
  • Andrew111888
    Senior Member
    • Mar 2003
    • 2288
    • 3.0.5

    #2
    This is next to the mail form in the ACP:

    In the message, you may use $userid, $username, $email, $activateid, and $activatelink.

    $activateid will be the activation number the user must use to activate his/her account. $activatelink will be the URL that a user needs to visit to be activated. Note: These will only be defined to users in the "Users Awaiting Email Confirmation" group.

    Note: you can not send passwords using this form as they are encrypted in the database. Please link to the 'lost password' form instead.

    Comment

    • ArunK
      New Member
      • Dec 2004
      • 14
      • 3.0.6

      #3
      I have seen that, but still.. which one would it be? $userid or $username? I don't want to send the same message twice.. that would be considered spamming.
      WebDevShack.com

      Comment

      • Andrew111888
        Senior Member
        • Mar 2003
        • 2288
        • 3.0.5

        #4
        $userid is their userid, $username is their username.

        So $username would be Bob if their username was Bob.

        Comment

        • ArunK
          New Member
          • Dec 2004
          • 14
          • 3.0.6

          #5
          Thanks! I will have to keep that in mind next time I sent a message to the members of the forum.
          WebDevShack.com

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎