使用烧瓶发送电子邮件给自己

时间:2019-02-15 23:38:44

标签: python flask

因此,我一直在尝试创建查询表单,以便客户可以向我的电子邮件发送问题。提交表单后,我收到一条错误消息

  

TypeError:只能将列表(而不是“ str”)连接到列表

   [Code]

    AddToColumnsBetweenDates =
    CALCULATE(SUM(TableName[ColoumnName1)+TableName[ColumnName2],
    FILTER(TableName, 
    DATEDIFF(DATE(2 018,01,01), DATE(2018,12,31),DAY

    Another one that I tried: 

    AddToColumnsBetweenDates =
    CALCULATE(SUM(TableName[ColumnName1),
    FILTER(TableName, 

    SUM(TableName[Column1])+TableName
    [ColumnName2]&&
    DATEDIFF(DATE(2018,01,01) < TableName[ColumnName1]=BLANK(),
    DATE(2018,12,31),DAY) && TableName[ColumnName1]>=BLANK()))

   [/Code]

1 个答案:

答案 0 :(得分:0)

您可以试试吗?

recipients=['sameemail@gmail.com']

它应该完成工作