• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[ANSWERED] Sending Mail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [ANSWERED] Sending Mail

    In order to send email I have had to change VVMAIL to include an additional property

    PHP Code:
    smtplhost New_String(%ucs2('mail.smtp.localhost'))
    Properties_setProperty(properties1smtplhostlhost); 
    Can this be added as a parameter in settings at some point?

    Thanks,
    Steve

  • #2
    Steve,

    Trying to understand what's going on there... Are you saying you have both a host and a localhost setting in your SMTP setup? What is "lhost" set to?

    -Rob

    Comment


    • #3
      Originally posted by robert.swanson View Post
      Steve,

      Trying to understand what's going on there... Are you saying you have both a host and a localhost setting in your SMTP setup? What is "lhost" set to?

      -Rob
      If I just use the VVMAIL program as is I get the following error

      Message . . . . : Java exception received when calling Java method.
      Cause . . . . . : RPG procedure VVMAIL_SEN in program VALENCE40/VVSRVPGM
      received Java exception "javax.mail.MessagingException: 501 HELO Invalid
      domain address." when calling method "send" with signature
      "(Ljavax.mail.Message;)V" in class "javax.mail.Transport".


      mail.smtp.host - We set this to the IP address of our email server

      In order to resolve the issue I added the property
      mail.smtp.localhost. It doesnt seem to matter the value we specify as long as its not blanks.


      Thanks for help.

      Comment


      • #4
        Okay, thanks for the info. We'll experiment with setting localhost to match host on our end and see what happens.

        Comment


        • #5
          FYI, the latest build includes this logic for setting the localhost value.

          Comment

          Working...
          X