Ted,

You shouldn't need the u/p on the SEND command - it's only needed to open the 
connection.

Can you check the logs in the email server? You might get a better sense of the 
error. It looks to me like either the u/p isn't correct or there is some other 
setting in the email server that needs to be set to allow this client to send 
mail. Can you tell if you are getting the error on the OPEN or SEND command?

Robert

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Thursday, October 13, 2011 3:52 PM
To: [email protected]
Subject: Witango-Talk: <@emailsession> tag

Hi,

I am trying to use the <@EMAILSESSION> and <@EMAIL> tags to set up an email 
session but only getting errors.  Does anyone have an example how these tags 
are use with authentication.

The error I am getting is: "Client host rejected: Access denied"

here is what I have so far.

<@EMAIL import name=request$myemail 
MESSAGE='Content-Type:multipart/alternative; boundary="<@MIMEBOUNDARY>"
MIME-Version: 1.0
Message-Id: <<@RANDOM low=10000 high=99999>.<@TSTOSECS 
<@CURRENTTIMESTAMP>>@<@VAR request$server_name>>
Date: <@CURRENTTIMESTAMP format="datetime:%a, %d %b %Y %H:%M:%S -0500">
To: <<@VAR request$vsending_email_address>>
From: "<@VAR request$vfrom_text>" <<@VAR request$vfrom_account>@<@VAR 
request$vserver_name>>
Reply-To: <<@VAR request$vfrom_account>@<@VAR request$vserver_name>>
Subject: <@VAR request$vemail_subject>

--<@MIMEBOUNDARY>
Content-type: text/plain
Content-Disposition: inline

<@VAR request$vemail_text_body>

--<@MIMEBOUNDARY>
Content-type: text/html
Content-Disposition: inline

<@VAR request$vemail_html_body encoding=meta>

--<@MIMEBOUNDARY>--
'>

<@COMMENT></@COMMENT>
<@EMAILSESSION command=open
sessionid=<@USERREFERENCE>
protocol=smtp
server=<@VAR request$vserver_ip>
port=25
username=<@VAR request$vfrom_account>@<@VAR request$vserver_name>
password=<@VAR vpassword SCOPE=Request>>

<@EMAILSESSION
command=send
sessionid=<@USERREFERENCE>
name=request$myemail
username=<@VAR request$vfrom_account>@<@VAR request$vserver_name>
password=<@VAR vpassword SCOPE=Request>>

<@EMAILSESSION command=close
sessionid=<@USERREFERENCE>
mode=commit>

Thanks for any help.

Ted


----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.



----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

Reply via email to