Code samples for sending a letter through the PostalMethods service are available for a variety of development environments. Select your environment below.
C#
These samples demonstrate how to consume PostalMethods services from C# – how to send a letter, check its delivery status, cancel it, etc.
- C#: Cancel Delivery Of A Letter with CancelDelivery()
- C#: Get Letter And Postcard Delivery Details with GetDetailsExtended()
- C#: Get Letter And Postcard Metadata with GetDetails()
- C#: Get The Status Of A Letter with GetStatus()
- C#: Get The Generated Letter with GetPDF()
- C#: Send A Letter with SendLetterAndAddress()
- C#: Send A Letter With SendLetter()
PHP
These samples demonstrate how to consume PostalMethods services from PHP – how to send a letter, check its delivery status, cancel it, etc.
- PHP: Accept status callback by HTTP POST from PostalMethods
- PHP: Retrieve The PDF Document Of The Letter Or Postcard With GetPDF()
- PHP: Send PDF or other binary file with SendLetter()
ASP
These samples demonstrate how to consume PostalMethods services from ASP – how to send a letter, check its delivery status, cancel it, etc.
- ASP: Cancel Delivery Of A Letter with CancelDelivery()
- ASP: Send A Letter with SendLetterAndAddress()
- ASP: Send A Letter With SendLetter()