This topic is locked

Email data field and additional recipients

3/31/2009 11:47:11 AM
ASPRunnerPro General questions
S
sfierce author

I have the AfterAdd email working fine as long as I only specifiy one recipient. If I use email=dict("Email") the email goes to the address entered in the form. If I use email="myemail@myemail.com" the email goes to the hard coded address listed.
I'm trying to email to both the fielde in the form and additional employess. I've tried several combinations but keep getting VBCode errors.
Can you help me with the correct coding to accomplish emailing both the form field "EMail" and additional recipients specified by their email address"
thank you

S
sfierce author 3/31/2009

After much trial and error I finally got this working. Just letting you know so you don't have to answer. Also, for anyone else that may want this too.
email = email & "myemail@myemail.com"

email = email & "," & dict("Email")
this works.
thanks

R
rdiorio@shorememorial.org 5/13/2009

Thank you for the tip <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=41069&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> I am getting an error just with ONE hard-coded email.
Error number -2147220977

Error description The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for rdiorio@shorememorial.org
YET MY EMAIL is completely valid

I appreciate any assistance
-Rita
-----------------------

After much trial and error I finally got this working. Just letting you know so you don't have to answer. Also, for anyone else that may want this too.

email = email & "myemail@myemail.com"

email = email & "," & dict("Email")
this works.
thanks

Sergey Kornilov admin 5/13/2009

This is a mail server setup issue.
Make sure the SMTP Service allows relay.
Go into the Properties of the IIS SMTP Service, go to the Access Tab, then open the Relay properties. Add 127.0.0.1 as allowed as well as the local IPs. This should allow you to send mail through your script.
More info: http://www.google.com/search?ie=UTF-8&...le+to+relay+for