使用email.c和contact.c servlet示例,我遇到“ sendemail()错误” /无法发送您的电子邮件:。
代码:
char *dst_address[] = { "myDestinationEmail@myDomain.com", "", 0 },
subject[] = "SubjectTest",
text[] = "TextTest";
sendemail("smtp.gmail.com:465",
"mySourceEmail@myDomain.com",
dst_address,
subject, text,
sizeof(text) - 1,
0,
"myLoginUsername@myDomain.com",
"myLoginPassword",
CAP_STARTTLS,
error)