Google was not my friend today :( I am using the sample smtp code: https://curl.haxx.se/libcurl/c/smtp-mail.html
to send an email to my gmail account via my local server. But gmail does not like the user name. From the qmail mailog: Dec 10 15:37:06 yow qmail: 1512938226.593690 starting delivery 93: msg 1709271 to remote [email protected] Dec 10 15:37:06 yow qmail: 1512938226.593757 status: local 0/10 remote 1/20 Dec 10 15:37:07 yow qmail: 1512938227.194971 delivery 93: failure: Connected_to_74.125.124.26_but_sender_was_rejected./Remote_host_said:_555_5.5.2_Syntax_error._a188si5053814itg.1_-_gsmtp/ I changed the code slightly: I create a real date and message-id. And I changed the message slightly as shown below: #define FROM "Sean MacLennan <[email protected]>" #define TO "<[email protected]>" static const char *payload_text[] = { NULL, /* date filled in */ "To: " TO "\r\n", "From: " FROM "\r\n", NULL, /* message-id filled in */ "Subject: Test sending to gmail\r\n", "\r\n", /* empty line to divide headers from body, see RFC5322 */ "Test test test.\r\n", NULL }; Anybody successfully sent to gmail.com? Should I just go through the gmail smtp server to send to my gmail account? I prefer to go through my local smtp server for logging purposes. And yes, I can email from claws-mail to [email protected]. Cheers, Sean ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
