Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

staf send emails through SSL emailserver ??

Help
eko
2013-05-23
2013-06-12
  • eko
    eko
    2013-05-23

    how to send email through a emailserver with SSL by staf  service email

     
  • Sharon Lucas
    Sharon Lucas
    2013-05-28

    If your email server requires SMTP authentication, then you should try using the AUTHUSER and AUTHPASSWORD options on your STAF Email SEND request.  These options were added in Email V3.3.5 when support was added for SMTP authentication.  So, if your SMTP server requires authentication, you can specify these options on your Email SEND request.  The STAF Email Service User Guide at http://staf.sourceforge.net/current/email.html#Header_Send contains more information on these options as follows:

    AUTHUSER specifies the user name which will be used to authenticate with the SMTP server via the Auth Login SMTP command. You should only specify this option if your SMTP server requires authentication. If you specify this option when using an SMTP server that does not allow authentication, you will see an error message such as AUTH mechanism LOGIN not available. If you specify the AUTHUSER option, you must also specify the AUTHPASSWORD option. This option will resolve variables.

    AUTHPASSWORD specifies the password which will be used to authenticate with the SMTP server via the Auth Login SMTP command. You should only specify this option if your SMTP server requires authentication. If you specify this option when using an SMTP server that does not allow authentication, you will see an error message such as AUTH mechanism LOGIN not available. If you specify the AUTHPASSWORD option, you must also specify the AUTHUSER option. This option will handle private data. This option will resolve variables.

    For example (substitute your userid and password to authenticate with your SMTP mail server):
    STAF local EMAIL SEND TO w392988385@126.com message "Test XYZ completed successfully." SUBJECT "Test XYX: Success" AUTHUSER yourUserid AUTHPASSWORD !!@yourPassword@!!

    Use the latest STAF Email service (V3.3.7) as V3.3.4 does not support the AUTHUSER and AUTHPASSWORD options.