Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - CDONTS mail.to= problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CDONTS mail.to= problem

 Post Reply Post Reply
Author
brucedl View Drop Down
Newbie
Newbie


Joined: 10 June 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote brucedl Quote  Post ReplyReply Direct Link To This Post Topic: CDONTS mail.to= problem
    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.

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?

Back to Top
brucedl View Drop Down
Newbie
Newbie


Joined: 10 June 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote brucedl Quote  Post ReplyReply Direct Link To This Post 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.

 

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post 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"?
Back to Top
brucedl View Drop Down
Newbie
Newbie


Joined: 10 June 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote brucedl Quote  Post ReplyReply Direct Link To This Post 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"



Edited by brucedl
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.