C Smtp

how do you send a ".\n" in a smtp client?

>354 Send message, end with <CRLF>.<CRLF>
>.
>

i have already issued a "./n" but it doesnt work.

please help. thanks.

Hi,
thats weird you need to send the dot like this

strcpy(buf,"Manual smtp test\n\n.\n");
write(fd,buf,strlen(buf));

I just tested that code against postfix and it worked ...