Sorry. Not only this is server-side issue, it's concerning ASP (or
even Exchange COM object !) and the language used is VBScript but not
JScript. So in all respect, it's not related to JavaScript in anyway.
Send quickly your problem to ASP (or Exchange) related mailing-lists
if you need a quick reply.
But while waiting patiently for someone to answer your question, you
could try first to see where the problem comes from. For example, insert
markers to see which if-branch (then-branch or else-branch) is entered by
the programme. Check also if those variables have their supposed values by
printing them into text files (because in ASP there's no console as standard
out).
Good luck :-)
> -----Original Message-----
> From: Wanda [mailto:wanda.love@f...]
> Sent: lundi 3 mars 2003 17:13
> To: javascript
> Subject: [javascript] Exchange 2000
>
>
> I have a user form that when submitted, one of the things it
> does is to
> send out emails based on some ASP coding I have. This code
> has worked for
> the last 3 1/2 years but we upgraded to Exchange 2000 and the
> code broke.
>
> What the code does:
> 1. Sends an email back to the user
> 2. Sends an email to individuals based on the location and division
> chosen in the form.
>
> How it should/use to work:
> 1. A designated individual would receive the email with
> another name in
> the To: field that is specified in the code, i.e.
> ECM_Dal (the name in the To: field of the email)
> Jack.Sprat@u... (the email address of the designated person above)
>
> What has happened since the upgrade is "ECM_Dal" is ignored
> and "Jack.Sprat@u..." now displays in the To: field.
>
> Does anyone know how I can fix this? I have a deadline for
> this project
> of March 6th.
>
> Here are snippets from my code:
>
> if invaliddata <> "yes" then
>
> 'prepare to send email
> Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
>
> if IsObject(Mailer) = FALSE then
> response.write "Error creating mail object. No
> mail can be sent.<BR>"
> end if
>
> Mailer.ClearBodyText
> Mailer.ClearAllRecipients
>
> strMailHost = "mail.fmr.com"
>
> Mailer.RemoteHost = strMailHost
>
> Mailer.ReturnReceipt = false
> Mailer.ConfirmRead = false
>
> Mailer.FromName = "FIRSCo OSA Nomination"
> Mailer.FromAddress = "OSA_Ballot@f..."
>
> Mailer.BodyText = strBody
>
> If NomineeSite = "Dallas" and NomineeDivision =
> "Emerging Corporate
> Market (ECM)" Then Mailer.AddRecipient "ECM_Dal", "Jack.Sprat@u..."
>
> Thanks...
>