Email API

Moved

Total Downloads: 644 - First Release: Nov 2, 2014 - Last Update: Jun 27, 2015

5/5, 3 likes
  1. Wulf

    Wulf Community Admin

    Currently just the one.
     
  2. Wulf I need your help. I can't get it to work at all here is my debug output
    Code:
    [Oxide] 8:03 PM [Info] [Email API] POST URL: https://email.us-east-1.amazonaws.com
    [Oxide] 8:03 PM [Info] [Email API] POST data: Source=RUST+SERVER%3Cadmin%40nindroidservers.com%3E&Destination.ToAddresses.member.1=Austin+Vandersluis%3Caustinv900%40nindroidservers.com%3E&Message.Subject.Data=Admin+Tickets+%7C+A+new+Ticket+has+been+submitted%21&Message.Body.Text.Data=A+new+Ticket+has+been+submitted.+Ticket+ID+3%0D%0ATimestamp%3A+2%2F13%2F2016+8%3A03%3A38+PM%0D%0APlayer%3A+%5BTKG%5D+KahunaDelGrande%0D%0ASteamID%3A+76561198051026032%0D%0ASteam+Profile%3A+https%3A%2F%2Fsteamcommunity.com%2Fprofiles%2F76561198051026032%0D%0APosition%3A+X%3A+-1146.829%2C+Y%3A+47.00465%2C+Z%3A+559.6187%0D%0AMessage%3A+lol%0D%0A&Action=SendEmail
    [Oxide] 8:03 PM [Info] [Email API] HTTP code: 403
    [Oxide] 8:03 PM [Info] [Email API] Email failed to send!
    [Oxide] 8:03 PM [Info] [Email API] <ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
      <Error>
        <Type>Sender</Type>
        <Code>MissingAuthenticationToken</Code>
        <Message>Request is missing Authentication Token</Message>
      </Error>
      <RequestId>ed94e729-d2cf-11e5-94ad-6f6dc6307528</RequestId>
    </ErrorResponse>
     
  3. Wulf

    Wulf Community Admin

    Sounds like you're missing the authentication token, or not using a valid one.
     
  4. This is my EmailAPI.json
    Code:
    {
      "Api": {
        "Domain": "",
        "PrivateKey": "xxxxx",
        "PublicKey": "xxxxx",
        "Service": "amazonses",
        "Username": ""
      },
      "Messages": {
        "InvalidService": "Configured email service is not valid!",
        "MessageRequired": "Message not given! Please enter one and try again",
        "SendFailed": "Email failed to send!",
        "SendSuccess": "Email successfully sent!",
        "SetDomain": "Domain not set! Please set it and try again.",
        "SetPrivateKey": "Private key not set! Please set it and try again.",
        "SetPublicKey": "Public key not set! Please set it and try again.",
        "SetUsername": "Username not set! Please set it and try again.",
        "SubjectRequired": "Subject not given! Please enter one and try again"
      },
      "Settings": {
        "FromEmail": "[email protected]",
        "FromName": "RUST SERVER",
        "ToEmail": "[email protected]",
        "ToName": "Austin Vandersluis"
      }
    }
     
    Last edited by a moderator: Feb 14, 2016
  5. Wulf

    Wulf Community Admin

    Did you save that and reload the plugin?
     
  6. multiple times. I've even renewed the keys and tried again. I've restarted the server also.
     
  7. Wulf

    Wulf Community Admin

    Hmmm, not sure then. I'll have to take a look when I get a chance. Pretty sure I tested it when I added support for it and it worked fine.
     
  8. Did you ever figure out a fix. I can't get any of the services to work
     
  9. Wulf

    Wulf Community Admin

    I haven't had a chance to test Amazon recently, but unless all of the services randomly decided to break their API, they should all still work fine.
     
  10. I've tested ManDrill. Also but they seem to be converting to mailchimp
     
  11. Wulf

    Wulf Community Admin

    Well boo, that really sucks! I use Mandrill for a lot of low-budget sites. What other ones have you tried?
     
  12. Amazon SES

    MailJet

    ManDrill

    Mad Mimi

    Are the ones I tried. If it possible to get it to work with mail chimp. That would be great since I already use it.
     
  13. Wulf

    Wulf Community Admin

    Try with debug enabled, it will give you extra output in your log/console:
     

    Attached Files:

  14. Code:
    [Oxide] 12:32 AM [Info] [Email API] POST URL: https://mandrillapp.com/api/1.0/messages/send.json
    [Oxide] 12:32 AM [Info] [Email API] HTTP code: 500
    [Oxide] 12:32 AM [Info] [Email API] Email failed to send!
    [Oxide] 12:32 AM [Info] [Email API] {"status":"error","code":-1,"name":"ValidationError","message":"You must specify a key value"}
    This is the output. Imma test something
    [DOUBLEPOST=1457513219][/DOUBLEPOST]
    I'm confused once again. im not a coder. haha
     
  15. does this require that you own a domain? trying to figure this out.

    for settings do i just put in my email from gmail?

    "Settings": {
    "FromEmail": "[email protected]",
    "FromName": "Rust Server",
    "ToEmail": "[email protected]",
    "ToName": "Jessica Mae"

    i keep getting this:

    [Oxide] 04:39 [Info] [Tickets] -40.4977
    [Oxide] 04:39 [Info] [Email API] Email failed to send!

    i know i'm doing something wrong, just can't figure it out lol

    trying to sign up for mailgun, they give a bunch of things to put in
    • State
    • IP Address
    • SMTP Hostname
    • Default SMTP Login
    • Default Password
    • API Base URL
    • API Key
    what goes where?
     
  16. I believe Wulf is trying to troubleshoot the issue. Hopefully it will get fixed soon.
     
  17. thanks :) thought it might have been me, always trial and error with these things until i get it right lol
     
  18. Wulf

    Wulf Community Admin

    This is not a straight SMTP email setup, it requires one of the transnational email providers listed on the Overview. You will need to own the domain you are sending from.
     
  19. thanks, too bad you need a domain for it to work :( i guess just normal tickets will have to do. It would probably just add to server lag anyway, more to load, removed a few plugins recently that didn't seem to work.
     
  20. How to setup the Email API with your own dovecot/postfix Email server?
    I have my own Email Server and dont know how to set it up ^.^