Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Send HTML no work #23

Open
ZephiroRB opened this issue Jun 9, 2015 · 0 comments
Open

Send HTML no work #23

ZephiroRB opened this issue Jun 9, 2015 · 0 comments

Comments

@ZephiroRB
Copy link

mimi = MadMimi.new('emailaddress', 'api_key', { :raise_exceptions => true })

options = {
'promotion_name' => 'Test Promotion',
'recipients' => 'Nicholas Young nicholas@madmimi.com',
'from' => 'MadMimi Ruby rubygem@madmimi.com',
'subject' => 'Test Subject'
}
raw_html = "<title>My great promotion!</title>Body stuff[[tracking_beacon]]"

mimi.send_html(options, raw_html)

not send and not save. error Net::HTTPServerException (403 "Forbidden")

Only save when >

mimi.save_promotion('promotion_name', 'raw_html', 'plain_text') # saves a promotion (creates the promotion if it does not exist)

How to send promotion saved?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant