Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Making good use of SmtpException.GetRejectedRecipients()
Topic Summary:
Created On: 02/13/2012 12:24 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Jason, on Monday, February 13, 2012 1:40 PM

Answer:
OK, thanks for your help.
 02/13/2012 12:24 AM
User is offline View Users Profile Print this message

Author Icon
Jason
Expert (100-199)

Posts: 134
Joined: 03/09/2006

To date I've worked around SMTP exceptions (due to invalid email addresses) simply by having the SendMail task move to the next step in the process. However, I'd really like to be notified (or be able to store data) when an invalid email address is encountered.

The SendMail task states that I should Call SmtpException.GetRejectedRecipients() but I can't find any documentation on how this should be done. I've tried creating a variable and assigning the value %SmtpException.GetRejectedRecipients()% to that variable on error, but the variable contains no data.

Anyone had any experience on how to call this function and make use of it?

 Category Survey
AutoMate 8 version:
Windows version:
 02/13/2012 09:35 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Hi Jason,

Are you sending emails outside of your domain? If so, have you supplied your email credentials within the action?





 Category Survey


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

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 02/13/2012 01:26 PM
User is offline View Users Profile Print this message

Author Icon
Jason
Expert (100-199)

Posts: 134
Joined: 03/09/2006

Sorry, I may have not made myself clear. The task is working just fine and sending emails in and outside of my domain. However, from time to time, we may be sending to an invalid email address, at which time it will throw an error. The SendMail task has a few main error options... I generally use STOP the task if it is critical, or I can use SKIP to next step if I'm not overly worried whether the email is sent or not. What I would like to do is capture the email addresses that fail when I elect to SKIP. The message within the SendMail function says that I can "Call SmtpException.GetRejectedRecipients()" to get a list of rejected email addresses. My question is, how and where do I do this? I tried creating a variable and placing the code %SmtpException.GetRejectedRecipients()% inside the variable after the SendMail function in the hope it would capture the data, but when I used a Message Box to show the content of the variable it was blank. How do I go about calling the SmtpException.GetRejectedRecipients() function? Ideally, I'd like to iterate through each and store them into a database - this is easy for me once I know how to get the data out of the function.

 Category Survey
AutoMate 8 version:
Windows version:
 02/13/2012 01:36 PM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Jason,

That is an error message within the component itself and not meant for the user to capture rejected email addresses. Currently, there is no functionality to capture that information.









 Category Survey


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

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 02/13/2012 01:40 PM
User is offline View Users Profile Print this message

Author Icon
Jason
Expert (100-199)

Posts: 134
Joined: 03/09/2006

Answer Answer
OK, thanks for your help.

 Category Survey
AutoMate 8 version:
Windows version:
 10/06/2016 12:10 PM
User is offline View Users Profile Print this message

Author Icon
TechnologyDepartment
Apprentice (20-49)

Posts: 37
Joined: 10/03/2016

I am running into this same issue using Automate 10.  We send to a group of 300 emails before. I've done in other shops using lower versions of AM with no problem. It sends out and if someone rejects, we get a bounce back. But this prevents all 300 people from getting the email now.  Users have reviewed and all email addresses are formatted correctly. Is it actually verifying email addresses?  If so, how do you turn off this "feature" which is stopping the other 299 people from getting their emails?  Thanks.



 Category Survey
AutoMate 8 version:
Windows version:
 10/12/2016 02:15 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hello,

I apologize for the delayed response. Would it be possible to specify what version you had this working correctly, I would like to run a comparison?

 Category Survey
AutoMate 8 version:
Windows version:


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

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 10/16/2016 11:44 AM
User is offline View Users Profile Print this message

Author Icon
TechnologyDepartment
Apprentice (20-49)

Posts: 37
Joined: 10/03/2016

It was for another client a long time ago. I think possibly AM 7 or 8.



 Category Survey
AutoMate 8 version:
Windows version:
 10/20/2016 03:15 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hello,

I apologize for the delayed response, we are currently investigating this issue.

Please standby.

 Category Survey
AutoMate 8 version:
Windows version:


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

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 10/21/2016 09:57 AM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hello,

Would it be possible to provide the list of emails you are using to send emails for further review?

You could also change up the task to loop through the list and send one email at a time. This will tell you exactly which email is failing.

 Category Survey
AutoMate 8 version:
Windows version:


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

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1029 guests browsing this forum, which makes a total of 1029 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog