WiP
[oweals/gnunet.git] / src / monkey / mail_sender.c
index 82688260a50a6ebcd3a3a25fcaa37900979c8e38..122a4d0abbeeeb3e1b0f94f92e54f6911e704a31 100644 (file)
@@ -16,7 +16,6 @@
 #if !defined (__GNUC__) || __GNUC__ < 2
 # define __attribute__(x)
 #endif
-#define unused      __attribute__((unused))
 
 
 int
@@ -136,7 +135,7 @@ void event_cb (smtp_session_t session, int event_no, void *arg,...)
 /* Callback to prnt the recipient status */
 void
 print_recipient_status (smtp_recipient_t recipient,
-                       const char *mailbox, void *arg unused)
+                       const char *mailbox, void *arg)
 {
   const smtp_status_t *status;
 
@@ -145,7 +144,7 @@ print_recipient_status (smtp_recipient_t recipient,
 }
 
 
-void sendMail(const char *messageContents
+void sendMail(const char *messageContents, const char *emailAddress)
 {
        smtp_session_t session;
        smtp_message_t message;
@@ -155,7 +154,7 @@ void sendMail(const char *messageContents)
        char *host = "localhost:25";
        char *from = "gnunet-monkey";
        char *subject = "e-mail from Libesmtp!";
-       const char *recipient_address = "safey.allah@gmail.com";
+       const char *recipient_address = emailAddress;
        char tempFileName[1000];
        int tempFd;
        FILE *fp;