Send mail in C code containing the "From", "To", "Subject", and "Message" parts

Reply

Join Date: Jan 2008
Posts: 6
Reputation: francisprite is an unknown quantity at this point 
Solved Threads: 0
francisprite francisprite is offline Offline
Newbie Poster

Send mail in C code containing the "From", "To", "Subject", and "Message" parts

 
0
  #1
Feb 5th, 2008
I'm using Linux and I'm trying to send mail using C but I'm not sure if my code works:

s_Mail[999] = "mailx -r \"Sender\" -R \"Recipient\" -s \"Subject\" -F \"Message\"";
mail(s_Mail);

This is the part that sends the mail...the -F for the message part is really hazy...
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 6
Reputation: francisprite is an unknown quantity at this point 
Solved Threads: 0
francisprite francisprite is offline Offline
Newbie Poster

Re: Send mail in C code containing the "From", "To", "Subject", and "Message" parts

 
0
  #2
Feb 5th, 2008
My bad..It's supposed to be:
s_Mail[999] = "mailx -r \"Sender\" -R \"Recipient\" -s \"Subject\" -F \"Message\"";
system(s_Mail);
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC