Web Hosting Talk







View Full Version : Sending email using Postfix


kapot
03-26-2006, 07:56 AM
Hi,

In my scripts I use sendmail to send email :

#define MAILER "/usr/sbin/sendmail -i -t"

And then I use it like this :

mailer = popen(MAILER, "w");
fprintf(mailer, "%s", from);
fprintf(mailer, "%s", rcpt);
fprintf(mailer, "%s", subject);
fprintf(mailer, "\nDear%s,\n\n", name);
fprintf(mailer, "Hello. \n");
pclose(mailer);

How to do this using Postfix ?
Anyone know ?