我正在使用sparkpost的Java API。尝试将电子邮件发送到同一电子邮件地址时,我有这种奇怪的行为。这在这里有效:
select s.* from stores s
where exists ( select 1 from Stores s1 where s.Industry=s1.Industry
having count(*)=1)
但是这里没有
Client client = new Client("apikey");
String emailfrom="info@example.com";
client.sendMessage(emailfrom,"info@example.com","subject",null,"html");
任何提示为何会发生这种情况?当我有一个不同的地址时,它有两种作用:我可以先将字符串存储到变量中,然后将其传递给函数。但是,如果地址相同,则会返回有关收件人错误的错误
client.sendMessage(emailfrom,emailfrom,"subject",null,"html");