The format:

FROM="John Smith <[EMAIL PROTECTED]>"

works fine with most email servers, as far as I know.

I remember that in (I THINK) ColdFusion versions previous to 4.5, this never worked 
for me.  I could've SWORN it was the mail server, but manually doing it this way 
worked.  I don't know if ColdFusion was looking at the email as invalid, or what.  
What I do know is that once the upgrade to 4.5 took place (the site was on a hosted 
server, so it was a while coming), this FROM format worked fine.  I never found any 
specifications on doing it this way in the cf docs, but apparently previous versions 
had a problem with this.

- Andy

> -----Original Message-----
> From: Mark Woods [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 12:29 PM
> To: CF-Talk
> Subject: RE: CFMAIL - twofold
> 
> 
> once you enclose your email address inside angle brackets, you should be 
> fine. The mail server should ignore the rest of the command as a comment 
> (note the word 'should', I didn't say 'will').
> 
> At 03:45 PM 3/27/2001, you wrote:
> >you CAN have FROM="Jay Patton<[EMAIL PROTECTED]>". i use that format all
> >the time. so you *can* have spaces in the FROM attribute.
> >
> >-----Original Message-----
> >From: Jay Patton [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, March 26, 2001 1:43 PM
> >To: CF-Talk
> >Subject: Re: CFMAIL - twofold
> >
> >
> >someone correct me if im wrong but doesn't the "From= " line 
> have to have a
> >valid email address such as: FROM="[EMAIL PROTECTED]" and 
> cant have a
> >name like: FROM="JAY PATTON"? i think i ran into a problem like 
> this a while
> >ago.?!?.
> >
> >Jay Patton
> >Web Design / Application Design
> >Web Pro USA
> >p. 406.549.3337 ext. 203
> >p. 1.888.5WEBPRO ext. 203
> >e. [EMAIL PROTECTED]
> >url. www.webpro-usa.com
> >----- Original Message -----
> >From: "Mark Lapole" <[EMAIL PROTECTED]>
> >To: "CF-Talk" <[EMAIL PROTECTED]>
> >Sent: Monday, March 26, 2001 2:06 PM
> >Subject: CFMAIL - twofold
> >
> >
> > > i may be a complete fool (some may argue), but if i'm trying 
> to achieve 2
> > > emails being sent off after a submitted form... what to do?
> > >
> > > 1) verification email sent back to the submitter (given they supply a
> >valid
> > > email address) with registration and seminar information
> > >
> > > and
> > >
> > > 2) email to internal events person responsible for these registrations
> > >
> > > No db involved -- should just be simple CFMAILs right?
> > > Can't have 2 CFMAIL tags on same action page?
> > >
> > > Using the following:
> > > --------------------------
> > > <CFMAIL TO="[EMAIL PROTECTED]"
> > >   FROM="Online_Registration"
> > >   SUBJECT="Seminar Registration"
> > >   TYPE="HTML">
> > >
> > > Name: #Form.FirstName# #Form.LastName#<BR>
> > > Company: #Form.CompanyName#<BR>
> > > Address1: #Form.Address1#<BR>
> > > Address2: #Form.Address2#<BR>
> > > Email: #Form.EmailAddress#<BR>
> > > Phone: #Form.Phone#<BR>
> > > Fax: #Form.Fax#<BR>
> > > </CFMAIL>
> > >
> > > <CFMAIL TO="#Form.EmailAddress#"
> > >     FROM="Online_Registration"
> > >      SUBJECT="Seminar Registration"
> > >     TYPE="HTML">
> > >
> > > Thank you for signing up to attend blahblahblah!<BR><BR>
> > >
> > > The following registration information has been submitted:<BR><BR>
> > >
> > > <B>Name:</B> #Form.FirstName# #Form.LastName#<BR>
> > > <B>Company:</B> #Form.CompanyName#<BR>
> > > <B>Address1:</B> #Form.Address1#<BR>
> > > <B>Address2:</B> #Form.Address2#<BR>
> > > <B>Email:</B> #Form.EmailAddress#<BR>
> > > <B>Phone:</B> #Form.Phone#<BR>
> > > <B>Fax:</B> #Form.Fax#<BR><BR>
> > >
> > > If this is not correct or you need to make changes contact <A
> > > HREF="mailto:[EMAIL PROTECTED]">Event Planner</A>
> > > </CFMAIL>
> > >
> > > Your registration for blahblahblah has been received -- we 
> look forward to
> > > meeting you!
> > >
> > > ------------------------------
> > >
> > > First snippet processes fine and even makes it to the "Your 
> reg has been
> > > received..." line.
> > >
> > > Any suggestions?
> > >
> > > -Mark
> > >
> > >
> > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> > >
> >
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to