Can't call method "mail" on an undefined value at email.pl line 41.

0 Likes

"PROBLEM/ABSTRACT:
Emails are not being generated after configuring the email_post_promote trigger. The following error message is logged in the trigger.log file:

Can't call method "mail" on an undefined value at email.pl line 41.

SOLUTION:
Make sure you can ping and telnet to the smtp server you defined in the email_post_promote trigger.

############################################################
# Modify smtp.yourserver.com to the name of your smtp server
############################################################
my $smtp = Net::SMTP->new('smtp.YOURSERVER.com');


# ping smtp.<YOUR_SERVER>.com

# telnet smtp.<YOUR_SERVER>.com 25


If you can&#146;t ping or telnet using that address, try removing the smtp from the address.

# ping <YOUR_SERVER>.com

# telnet <YOUR_SERVER>.com 25

If the above works, then modify the email_post_promote trigger with that entry.

############################################################
# Modify smtp.yourserver.com to the name of your smtp server
############################################################
my $smtp = Net::SMTP->new('YOURSERVER.com');

For more information contact AccuRev Support"

Comment List
Anonymous
Related Discussions
Recommended