Hi,
I think an Email address has nothing to do with POP3 as it can be a VSNL 
POP3 account or any FREE like hotmail, yahoo, usa.net, rediffmail Email 
account. I connected to VSNL SMTP server and try to send mail, it even don't 
work for <[EMAIL PROTECTED]> (as recipient) it only recognize full domain 
<[EMAIL PROTECTED]>???
Here is the peice of code FOR GURUs that I use to send mails through SMTP, 
GURUs please check out for any mistake...

=========================================================
S = socket(AF_INET, SOCK_STREAM,0);
A.sin_family=AF_INET;
A.sin_port = htons(25);
h = gethostbyname("giasdl01.vsnl.net.in");
A.sin_addr.s_addr = *((unsigned long *)h->h_addr);
i=connect(S,(struct sockaddr *) &A,sizeof(A));
i=recv(S,R,10000,0);
strcpy(R,"HELO vikas.com\r\n");
i=send(S,R,strlen(R),0);
i=recv(S,R,10000,0);
strcpy(R,"MAIL FROM:<[EMAIL PROTECTED]>\r\n");
        i=send(S,R,strlen(R),0);
        i=recv(S,R,10000,0);
sprintf(R,"RCPT TO:<[EMAIL PROTECTED]>\r\n");
        i=send(S,R,strlen(R),0);
        i=recv(S,R,10000,0);
strcpy(R,"DATA\r\n");
        i=send(S,R,strlen(R),0);
        i=recv(S,R,10000,0);
sprintf(R,"To: [EMAIL PROTECTED]\r\n");
        i=send(S,R,strlen(R),0);
sprintf(R,"FROM: [EMAIL PROTECTED]\r\n");
        i=send(S,R,strlen(R),0);
strcpy(R,"DATE: 10 Dec 2000 18:30 IST\r\n");
        i=send(S,R,strlen(R),0);
sprintf(R,"SUBJECT: My Mail through SMTP\r\n");
        i=send(S,R,strlen(R),0);
strcpy(R,"\r\n\r\n");
        i=send(S,R,strlen(R),0);
sprintf(R,"Hi, How are you?\r\n");
        i=send(S,R,strlen(R),0);
strcpy(R,".\r\n");
        i=send(S,R,strlen(R),0);
        i=recv(S,R,10000,0);
strcpy(R,"QUIT\r\n");
i=send(S,R,strlen(R),0);
i=recv(S,R,10000,0);
=========================================================



>From: "Ch.Rama Krishna Prasad" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED],        "Vikas P" 
><[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: Re: [LIP] kindly suggest a project
>Date: Mon, 11 Dec 2000 09:46:44 +0530
>
>Hi vikas,
>     I think hotmail as no pop server. Try with yahoo . If it works with 
>yahoo
>your programming is good otherwise check your code.
>OK
>From
>Ch.R.k.Prasad
>
>
>On Sun, 10 Dec 2000, Vikas P wrote:
> > Hi!
> > I'm making SMTP client I've VSNL Account. I use smtp.vsnl.com as SMTP
> > Server. The VSNL Server doesn't recognize my hotmail account
> > [EMAIL PROTECTED] or even any other account (except my VSNL email
> > account). I program it in C (Linux). Is the problem with VSNL or my 
>network
> > settings...???
> >
> >
> > ----- Original Message -----
> > From: "� � � � � K" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, December 10, 2000 8:08 PM
> > Subject: Re: [LIP] kindly suggest a project
> >
> >
> > > smtp or pop client would be fine
> > >
> > > _______
> > > deepak
> > >
> > >
> > > At 12/10/00 9:22:00 AM, you wrote:
> > > >hello list,
> > > >            i am a newbie to linux, but interested in prgramming in
> > it,especially in the
> > > networking part.can anyone suggest a project that can be completed 
>within
> > a
> > > reasonable amount of time.
> > > >
> > > >
> > > >_____________________________________________________
> > > >Chat with your friends as soon as they come online. Get Rediff Bol at
> > > >http://bol.rediff.com
> > > >
> > > >Participate in crazy auctions at http://auctions.rediff.com/auctions/
> > > >
> > > >
> > > >
> > > >
> > > >---------------------------------------------
> > > >An alpha version of a web based tool to manage
> > > >your subscription with this mailing list is at
> > > >http://lists.linux-india.org/cgi-bin/mj_wwwusr
> > > >
> > > >
> > > ______________________
> > > __reply soon
> > > __bye
> > > _____|) (- (- |> /\ |<
> > > ______________________
> > >
> > >
> > >
> > > ---------------------------------------------
> > > The mailing list archives are available at
> > > http://lists.linux-india.org/cgi-bin/wilma/LIP
> > >
> >
> > ---------------------------------------------
> > Find out more about this and other Linux India
> > mailing lists at http://lists.linux-india.org/

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to