Jump to content

Recommended Posts

Posted

I tried to do something similar, but it didn't work out because I have very little experience and knowledge. I'm wondering if it's possible to create a plugin for RUST that will send messages to a specified email address?

The player simply writes in the chat /report <message>, and the message is sent by email.

Maybe this will be handled by someone experienced in creating plugins?

 

And again, I will say in advance, I am not looking for a person who will create a plugin for me personally. I'm not looking for a team to create a plugin. I am generally against personal plugins, unless they are plugins that make the game on the server unique. It would be good if someone would create such a plugin and post it here on CF.

Posted

you can just google in c# how to do a smpt call . but this should be something like this :

 

private void SendEmail(string recipientEmail, string messageBody)
{
    string smtpHost = "your-local-smtp-server";
    int smtpPort = 25; 

    using (var smtpClient = new SmtpClient(smtpHost, smtpPort))
    {
        smtpClient.UseDefaultCredentials = true; 

        var mailMessage = new MailMessage
        {
            From = new MailAddress("[email protected]"),
            Subject = "Rust Server Notification",
            Body = messageBody,
        };
        mailMessage.To.Add(recipientEmail);

        smtpClient.Send(mailMessage);
    }
}

 but this is just a google search . not tested . so you prob need to test this a bit and tinker to get it to work

 

Posted

With the help of Google and artificial intelligence, I managed to create a plugin that sends reports by email. Personally, I'm already satisfied with it. But I would like other server owners to be able to use it too. But I can't post it here, because it's forbidden to post plug-ins created using artificial intelligence here. Maybe one of the experienced developers will undertake to redo the plugin in their own way, so that it can be posted here?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.5m

Downloads

Total number of downloads.

7.1k

Customers

Total customers served.

106.8k

Files Sold

Total number of files sold.

2.2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.