Problem with smtpmail.p

I'm trying to use smtpmail.p with our email server, but having no luck. I've tried to duplicate the settings used in my email client, but there's something different that the ever-suspicious server picks up and it returns this message:

220-(servername) ESMTP Exim 4.68 #1 Thu, 04 Sep 2008 00:51:38 -0500 
220-We do not authorize the use of this system to transport unsolicited, 
220 and/or bulk e-mail.

Has anyone had this problem before, or have any ideas on why it is occuring?

Here's my run statement:

run smtpmail.p (
    'server',                 /*mailhub*/
    'toemail',                /*EmailTo*/
    'fromemail',              /*EmailFrom*/
    '',                       /*EmailCC*/
    '',                       /*Attachments*/
    '',                       /*LocalFiles*/
    'test subject',           /*Subject*/
    'test body',              /*Body*/
    'type=text/plain',        /*MIMEHeader*/
    'text',                   /*BodyType*/
    2,                        /*Importance*/
    yes,                      /*L_DoAUTH*/
    '',                       /*C_AuthType*/ (tried 'base64')
    'username',               /*C_User*/
    'password',               /*C_Password*/
    output vl_success, 
    output vl_message).


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

RE: Problem with smtpmail.p

Not sure, but thinking your email server is setup to not allow anonymous redirection of email. try setting your fromemail account to an email address that is known to work with the email server and see if that goes through. Strictly a guess, no guarantees.

Good Luck
--LT


Thanks for the response, but

Thanks for the response, but I'm afraid I've already tried that.

Came across a simple (Windows only) method using the CDO COM interface which I've had more success with: http://www.oehive.org/node/1324