Skip to content

Take an object instead of all those set... calls. This is not Java :-) #2

@mwawrusch

Description

@mwawrusch

Hi guys, very excited about using alphamail, it solves a problem that I and probably a lot of other people have.

That said, can you clean up the API and support something like this:

projectId: 1234,
sender: ...
bodyObject: data

instead of doing all the

.setProjectId(1235) // ID of your AlphaMail project
.setSender(new alphamail.EmailContact("My Company", "your@domain.com"))
.setReceiver(new alphamail.EmailContact("Some guy", "some@guy.com"))
.setBodyObject(data)

Metadata

Metadata

Assignees

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