Print Page | Close Window

CDONTS mail.to= problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7835
Printed Date: 01 April 2026 at 1:12am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CDONTS mail.to= problem
Posted By: brucedl
Subject: CDONTS mail.to= problem
Date Posted: 03 December 2003 at 1:24pm

I am trying to send email useing CDONTS mail.to= and have a problem. What I need to do is have the to address populate with something like this, so the additional text arrives in the message to: line.

mailto:myname@mydomain.com - myname@mydomain.com , {$GM-WebImport$}

Or I need to drop the following into the email header information:

Content-Type: application/x-gm-impdata

The to: line seems to only allow email address separated by semicolons, and I don't know how to change the header info. Can anyone suggest how to solve this?



-------------
Bruce



Replies:
Posted By: brucedl
Date Posted: 04 December 2003 at 1:37am

Solved this myself, partly:

Mail.To = "{$GM-WEBIMPORT$} <" + toadr + ">"

does the trick.

As for the headers, I couldn't get mail.value(header) = to pass a header of "content-Type" and I have no clue why.

 



-------------
Bruce


Posted By: pmormr
Date Posted: 04 December 2003 at 3:08pm
because content-type is the label for the header... when you ask for someone's phone number do they reply, "Phone Number: 555-555-5555"?

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: brucedl
Date Posted: 04 December 2003 at 3:54pm

So how should this be coded? I was doing this:

mail.value("Content-Type") =  "application/x-gm-impdata"



-------------
Bruce



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net