Closed Thread Icon

Topic awaiting preservation: JMail anyone? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12761" title="Pages that link to Topic awaiting preservation: JMail anyone? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: JMail anyone? <span class="small">(Page 1 of 1)</span>\

 
BlueHarvest
Nervous Wreck (II) Inmate

From: Västerås, Sweden
Insane since: Dec 2002

posted posted 05-26-2003 14:40

Does anyone here use JMail from Dimac?

I'm trying to build a simple e-mail form using JMail and have the result of what people feed into the form sent to a designated e-mail addy. Sounds simple enough, right?

The problem I'm having is that I want the user of the form's e-mail addy (if provided) to appear in the resulting e-mail's "from" field. If not provided, the from field should be empty.

Here's the jmail code:

code:
msg.From = Request.form("e-mail")



and this is the simple form code:

code:
<input type="text" name="e-mail" size="40" maxlength="80">



This works fine as long as the user of the form provides an address. If not, the mail with the result (even if all other fields have data in them except the e-mail field) is never sent... or at least it never reaches the designated addy.

In all of Dimacs own documentation and examples they code a "from" addy directly into the code. That doesn't help. I want to be able to hit the reply button in my mail program and reply directly to the right address if there is one.

Any ideas?

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-26-2003 17:42

how about setting it to a default value if it's empty?

I don't know much asp, but try something like this:

IF not IS_NULL(Request.form("e-mail") Then
msg.From = Request.form("e-mail")
Else
msg.From = "Your Webserver"
END IF
(not sure about the not is_null part... but you catch the idea).
(oh and what's about using - as a field name? is that actually possible?)

BlueHarvest
Nervous Wreck (II) Inmate

From: Västerås, Sweden
Insane since: Dec 2002

posted posted 05-27-2003 08:41

Absolutely! I was thinking the same thing. unfortunately my asp knowledge doesn't even come close to pulling something like that off. Could someone with better skills than Tyberius and me perhaps come up with a similar solution?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-27-2003 08:55

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

BlueHarvest
Nervous Wreck (II) Inmate

From: Västerås, Sweden
Insane since: Dec 2002

posted posted 05-27-2003 09:11

Whoa! Don't bite my head off. Sheesh!

I didn't mean to insult TP in any way. He admitted himself that he wasn't sure about the code so I threw the continued question out there.

Two points:
1. Google, as I'm sure you know, is very time consuming. It's more efficient, in my experience, to ask a direct question in a forum rather than trying a bunch of different search options and being unsure about the quality of the search results.
2. As I'm already a member of this forum and not Dimac's, and have previously had very good discussions here, I'd rather post here than in their own forum.

I don't know ASP, so sue me. Thanks a lot for making me feel like a complete lamer. I thought this forum was here for discussions like these, silly me.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-27-2003 09:33

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

BlueHarvest
Nervous Wreck (II) Inmate

From: Västerås, Sweden
Insane since: Dec 2002

posted posted 05-27-2003 10:09

I appreciate what you're saying and I also very much appreciate the help that both you and TP have given me. Please allow however that there may be people in the business who are not interested in learning a new programming language simply because their plate is brimming over as it is.

A couple of years ago I may have been guilty or rolling my eyes and being a little short with people who didn't bother to look things up. I simply don't have that leisure any more. I'm not suggesting you do, I'm simply hoping that I'll catch you after you've had your first cup of coffee the next time.

« BackwardsOnwards »

Show Forum Drop Down Menu