我正在使用mailgun_rails gem从我的rails应用程序发送邮件。我在Mailgun中创建了一个名为“weekly_digest”的广告系列。
在我的邮件中:
email = mail(to: subscription.email, subject: "Here is the top rated release this week")
email.mailgun_options = {campaign: 'weekly_digest'}
在Mailgun日志中,我可以看到邮件发送时没有广告系列:
"campaigns": []
我哪里出错?
答案 0 :(得分:0)
您需要返回lst = []
for picture in directory:
img = cv2.imread(picture)
img = img.flatten() # because classifiers require it to be flat
if lst = []:
lst = img
else:
lst = concatenate((lst, [img]), axis=0)
对象。见https://github.com/jorgemanrubia/mailgun_rails/blob/f77f73d4357436005049831b06598efbf5e02a61/spec/lib/mailgun/deliverer_spec.rb#L182-L186