Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
email problem using iw_solution_email.ipl
iw_store
Hi ALL,
I am using iw_solution_email.ipl to send email through my work flow, iam getting following error:
SMTP RCPT command failed:
SPAM-Relay detected
at /data/software/iw/iw-home/local/config/wft/bt-btw-p-solutions/iw_solution_email.ipl line 796
My Task is as follows :
declare_task('email_send',
name => $localizer->format('send mail'),
description => $iw_user,
type => "externaltask",
owner => $iw_areaowner,
areavpath => $iw_workarea,
command => "$iwperl $email_ipl -t \""
. $localizer->format('send mail') . "\"",
variables => {
"iw_mailheader_pt" => $director_email_header_template,
"iw_mailbody_pt" => $director_email_body_template,
"iw_mailbody_text_pt" => $director_email_text_body_template });
$email_ipl is nothing but $email_ipl = /data/software/iw/iw-home/local/config/wft/bt-btw-p-solutions/iw_solution_email.ipl
and My Header is :
<headers>
<to>
<addr>****@yyy.com</addr>
</to>
<!-- You can CC additional addresses. For example: -->
<cc>
<addr>****@yyy.com</addr>
</cc>
<!-- From the owner of the email task -->
<from>
<iwov_emailmap user='{iw_value name="dcr.workflowinformation.task[1].description"/}' />
</from>
<!-- Use the description of the Review task as the subject -->
<subject>Get Portal FastTrack approval from TeamSite Support</subject>
</headers>
Any Help will Be, Helpful to me.
Sanjeev.
Find more posts tagged with
Comments
Adam Stoller
SMTP RCPT command failed:
SPAM-Relay detected
at /data/software/iw/iw-home/local/config/wft/bt-btw-p-solutions/iw_solution_email.ipl line 796
You need to talk to your Mail / SMTP server maintainer - and spend a bit of time tracking down the email as it attempts to go through the system.
Most likely the email is coming "From" an address which is not being recognized as a valid address for that server -or- the Sender (the owner of the process actually attempting to send the email) and the "From" address do not match and thus the mail server believes this is an attempt to send spam - and is thus denying the receipt of the email.
The script in question appears to be a locally customized version of the iw_solution_email.ipl script - so I have no idea what is on / around line 796 in that script - most likely it's something like:
$msg->send();
which isn't going to tell you a heck of a lot.
You might try inserting the following line
before
the actual attempt to send the email and see if that helps resolve problems:
$ENV{MAILADDRESS} = $from_email;
(this presupposes that
$from_email
is defined in your script to be the address being used for the 'From' header in the email.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com