From 8d6dc0d493ad1eae742e6feaeddb813aafeca87e Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Fri, 14 Aug 2020 04:27:47 -0400 Subject: [PATCH] SMTP fix --- mermsemr/src/core/smtp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mermsemr/src/core/smtp.cc b/mermsemr/src/core/smtp.cc index b66440a..92ec481 100644 --- a/mermsemr/src/core/smtp.cc +++ b/mermsemr/src/core/smtp.cc @@ -117,15 +117,15 @@ int SMTP2( const char * _server, const char * _from, char * _to, char * _body, c } // Google - snprintf( name, BUF_SIZE, EMAIL_PREFIX"/../src/modules/mailsend -smtp %s -f %s -t %s -d %s -name '%s' +cc +bcc -v -starttls -auth-plain -user %s -pass %s -sub '%s' -M '%s'", + snprintf( name, BUF_SIZE, EMAIL_PREFIX"/../src/modules/mailsend -smtp %s -f %s -t %s -domain %s -name '%s' +cc +bcc -v -starttls -port 587 -auth-plain -user %s -pass %s -sub '%s' -content-type 'text/html' -mime-type 'text/html' -M '%s'", _server, _from, _to, _domain, _name, _user, _pass, subject, body != NULL ? body : _body ); /* // Virtualmail - snprintf( name, BUF_SIZE, EMAIL_PREFIX"/../src/modules/mailsend -smtp %s -f %s -t %s -d %s -name '%s' +cc +bcc -v -port 25 -auth-plain -user %s -pass %s -sub '%s' -M '%s'", + snprintf( name, BUF_SIZE, EMAIL_PREFIX"/../src/modules/mailsend -smtp %s -f %s -t %s -domain %s -name '%s' +cc +bcc -v -port 25 -auth-plain -user %s -pass %s -sub '%s' -content-type 'text/html' -mime-type 'text/html' -M '%s'", _server, _from, _to, _domain, _name, _user, _pass, subject, body != NULL ? body : _body ); *//* // GoDaddy - snprintf( name, BUF_SIZE, EMAIL_PREFIX"/../src/modules/mailsend -smtp %s -f %s -t %s -d %s -name '%s' +cc +bcc -v -port 80 -auth-plain -user %s -pass %s -sub '%s' -M '%s'", + snprintf( name, BUF_SIZE, EMAIL_PREFIX"/../src/modules/mailsend -smtp %s -f %s -t %s -domain %s -name '%s' +cc +bcc -v -port 80 -auth-plain -user %s -pass %s -sub '%s' -content-type 'text/html' -mime-type 'text/html' -M '%s'", _server, _from, _to, _domain, _name, _user, _pass, subject, body != NULL ? body : _body ); */ logfmt( FLOG_MAX, "Calling MAILSEND: %s", name);