Skip to content

mailtrap client not working with a sandbox host #11

Closed
@matthbull

Description

@matthbull

sanbox urls have an ID number at the end of the host string eg: "https://sandbox.api.mailtrap.io/api/send/123456"

yet in the client, it constructs the host url with

url = f"{self.base_url}/api/send"

thus not allowing us to use sandbox urls with the library. This means that its really impossible to use the library across uat/production environments where we went to be trapping emails.

Can alterations be made so that the entire api_host can be specified without it appending /api/send? this will allow us to use the library for any environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions