2021-10-30 18:34:14 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [relaysmtp](./bitburner.ns.relaysmtp.md)
|
|
|
|
|
|
|
|
## NS.relaysmtp() method
|
|
|
|
|
2021-11-03 23:16:10 +01:00
|
|
|
Runs relaySMTP.exe on a server.
|
2021-10-30 18:34:14 +02:00
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-10-30 21:46:34 +02:00
|
|
|
relaysmtp(host: string): void;
|
2021-10-30 18:34:14 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-10-30 21:46:34 +02:00
|
|
|
| host | string | Hostname of the target server. |
|
2021-10-30 18:34:14 +02:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
2021-10-30 21:46:34 +02:00
|
|
|
RAM cost: 0.05 GB
|
2021-10-30 18:34:14 +02:00
|
|
|
|
2021-11-03 23:16:10 +01:00
|
|
|
Runs the relaySMTP.exe program on the target server. relaySMTP.exe must exist on your home computer.
|
|
|
|
|
2022-01-08 19:25:06 +01:00
|
|
|
## Example 1
|
2021-10-30 18:34:14 +02:00
|
|
|
|
|
|
|
|
2021-10-30 21:46:34 +02:00
|
|
|
```ts
|
2022-01-08 19:25:06 +01:00
|
|
|
// NS1:
|
2021-10-30 18:34:14 +02:00
|
|
|
relaysmtp("foodnstuff");
|
|
|
|
```
|
|
|
|
|
2022-01-08 19:25:06 +01:00
|
|
|
## Example 2
|
|
|
|
|
|
|
|
|
|
|
|
```ts
|
|
|
|
// NS2:
|
|
|
|
ns.relaysmtp("foodnstuff");
|
|
|
|
```
|
|
|
|
|