Page tree
Skip to end of metadata
Go to start of metadata

Returns the HTML code of a specific message by specifying the IDs of either the message or the MailUp list that contains it

Method parameters

  • string GetNewsletterCode (string accessKey, int listID, int newsletterID, bool usingTemplate)


Characters & and " are not escaped in returned response, so please avoid these characters in message subjects otherwise you will experience some problems due to an invalid returned XML

Code Examples

# Refer to for gem information.
require 'mailup'
m ='username', 'password')
m.get_newsletter_code(:listId => 1, :newsletterID => 3, :usingTemplate => false)
# => <GetNewsletterCodeResult><errorCode>0</errorCode><errorDescription></errorDescription>...</GetNewsletterCodeResult>"
  • No labels