Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / sendmail.rex not working, kind-of

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. sendmail.rex not working, kind-of
#13475
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.
cliff:-)
Message2.
#13482
Posted by: ironcore 2011-05-06 07:00:39
aah haa!!

After much google and howstuffworks.com research I found the problem.

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

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 = "SMTP:me@privider.net"
and the sendmail.rex now works.
cliff:-)
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2017-9-22  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0