Guidance Forums / Reginald Rexx / sendmail.rex not working, kind-of

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. sendmail.rex not working, kind-of
Posted by: ironcore 2011-04-29 07:08:27 Last edited by: Jeff Glatt 2012-01-25 05:19:52 (Total edited 1 time)
I've been playing with the email rexx  sendmail.rex. After replacing Jeff's email address with my own and running the program, I get an undeliverable message  email from my email app (outlook):

Your message did not reach some or all of the intended recipients.

      Subject:    REXX EMAIL test
      Sent:    4/28/2011 3:58 PM

The following recipient(s) could not be reached:

      'Cliff Boley' on 4/28/2011 3:58 PM
            The message could not be delivered because the recipient's destination email system is unknown or invalid. Please check the address and try again, or contact your system administrator to verify connectivity to the email system of the recipient.

So for some reason outlook doesn't like the address supplied by MailMessage.10.4 in the example script.
Posted by: ironcore 2011-05-06 07:00:39
aah haa!!

After much google and research I found the problem.

for the recipient address I entered a basic email address ie:
  MailMessage.10.4 = ""

When the email popup window came up with the email address in the "TO" box I checked the
properties on the address and noticed that the "email type" was listed as the email address.
I changed it to SMTP and sent the email and it went thru.

I went to google and found some code using MAPIsendMail and noticed that they prefixed the
email address with SMTP:  I changed my code to   MailMessage.10.4 = ""
and the sendmail.rex now works.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Sat 2018-5-26  Guidance Laboratory Inc. Hits:0