close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Recipient address rejected - Script stops

Thread began 9/24/2009 1:37 am by steen120697 | Last modified 10/05/2009 2:32 pm by Jason Byrnes | 5474 views | 12 replies |

steen120697

Recipient address rejected - Script stops

We are using the CDONTS NewMail object to send out a number of emails taken from a recordset.

Somewhere down list (no. 127) the inevitable happens: wrong email address. We get this message:

Recipient address rejected: Domain not found; from=<mail@ourdomain.com> to=<mail@theirdomain.com>

The script stops and we get an internal http 500 server error. According to our log, the system did send out 127 emails before it stopped.

Please tell me what I am doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

One of the addresses in your database is not a valid email address. check the email addresses in your recordset.

Maybe create a repeating region to write them to the web page so you can examine them.

Sign in to reply to this post

office172461

I think what he's asking is how to prevent a total stop to the process when it hits a bad address. You can't always prevent users from entering a bad address.

Sign in to reply to this post

steen120697

The process stops totally and that's my problem - thank you office172461. My list probably contains numerious bad addresses and I have no way of checking this.

So my question is: How can I make sure that the process continues and gets to the end of my list even with a few a bad addresses here and there?

Sign in to reply to this post

Lon WintersBeta Tester

By not being a "valid" email address, I think he means that it has to do with formatting, not that the email address actually exists.

A properly formatted email address will still send, it will just bounce back if the recipient doesn't exist. The only time I ever ran into this problem, that was the cause - there was a space or a dot where it wasn't supposed to be.

As far as user entry, it's necessary to have form validation on email addy input fields - if it passes validation for an email address field, then it will work with UE.

Sign in to reply to this post

steen120697

My hope lasted only shortly. I just checked the address that caused the process to stop and it IS a valid address.

Sign in to reply to this post

Jason ByrnesWebAssist

Is there a leading or trailing space on the address?


try using the trim function to remove any leading pr trailing spacess:

$RecipientEmail = "".trim($row_RSName["Email"]) ."";include("WA_Universal_Email/WAUE_users_EmailPW_1.php");

Sign in to reply to this post

steen120697

The address looks really allright to me but it seems like a good idea to use the TRIM function in any case.

Would you care to send me the correct function in ASP?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

In asp, the recipient email is added as:
WA_Universal_Email_1_SendMail("" & cStr(cStr(Request.Form("textfield"))) & "")


to use the Trim function;
WA_Universal_Email_1_SendMail("" & cStr(cStr(Trim(Request.Form("textfield")))) & "")

Sign in to reply to this post

steen120697

I tried the TRIM function and my script still stops completely when I get to one particular address.

I checked the email address using this link validate.aspx. Don't know if this validator makes any sense but I get "Mail box does not exist".

The address giving me all this headache is ocn@thtane.com

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...