# Method Global:SendMail [-] [+]

Sends mail to a Player.

There can be several item entry-amount pairs at the end of the function. There can be maximum of 12 different items.

    enum MailStationery
    {
        MAIL_STATIONERY_TEST = 1,
        MAIL_STATIONERY_DEFAULT = 41,
        MAIL_STATIONERY_GM = 61,
        MAIL_STATIONERY_AUCTION = 62,
        MAIL_STATIONERY_VAL = 64, // Valentine
        MAIL_STATIONERY_CHR = 65, // Christmas
        MAIL_STATIONERY_ORP = 67 // Orphan
    };

## Synopsis

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow )`

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow, senderGUIDLow )`

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary )`

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay )`

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money )`

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money, cod )`

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money, cod, entry )`

`itemGUIDlow = SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money, cod, entry, amount )`

## Arguments

`string subject`

  Title (subject) of the mail.

`string text`

  Contents of the mail.

`number receiverGUIDLow`

  Low GUID of the receiver.

  Valid numbers: integers from 0 to 4,294,967,295.

`number senderGUIDLow (0)`

  Low GUID of the sender.

  Valid numbers: integers from 0 to 4,294,967,295.

`MailStationery stationary (MAIL_STATIONERY_DEFAULT)`

  Type of mail that is being sent as, refer to MailStationery above.

`number delay (0)`

  Mail send delay in milliseconds.

  Valid numbers: integers from 0 to 4,294,967,295.

`number money (0)`

  Money to send.

  Valid numbers: integers from 0 to 4,294,967,295.

`number cod (0)`

  Cod money amount.

  Valid numbers: integers from 0 to 4,294,967,295.

`number entry (0)`

  Entry of an Item to send with mail.

  Valid numbers: integers from 0 to 4,294,967,295.

`number amount (0)`

  Amount of the Item to send with mail.

  Valid numbers: integers from 0 to 4,294,967,295.

## Returns

`number itemGUIDlow`

  Low GUID of the item. Up to 12 values returned, returns nil if no further items are sent.

  Valid numbers: integers from 0 to 4,294,967,295.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine