The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SMTP Error 553 Sergiu-IT IP Networking 3 12-13-2006 02:34 PM
SMTP with sendmail 0ktalmagik IP Networking 1 05-10-2006 10:31 PM
SMTP mail Euler04 IP Networking 1 10-10-2005 09:54 AM
Net::smtp - Did this work cheng Shell Programming and Scripting 1 05-06-2005 08:38 AM
Smtp vtran4270 UNIX for Advanced & Expert Users 1 12-10-2002 02:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-15-2008
Registered User
 

Join Date: Jan 2008
Posts: 6
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.
Reply With Quote
Forum Sponsor
  #2  
Old 02-15-2008
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Hi,
thats weird you need to send the dot like this
Code:
strcpy(buf,"Manual smtp test\n\n.\n");
write(fd,buf,strlen(buf));
I just tested that code against postfix and it worked ...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0