Forums

I do not send to:xxx in the body email.

christianmls 15 Oct, 2010
I do not send to:xxx in the body email.

In My Email Template I have:

user:{cmaginet}
text:{Message}
to:{Fono}

But, It arrive (to my email):

user:hi
text:ecuador
59387574705

How I can do for that arrive the email with to:59387574705?

For example
user:hi
text:ecuador
to:59387574705
GreyHead 16 Oct, 2010
Hi christianmls,

Hmmm . . . 59387574705 isn't a valid email address so you can't send an email to it.

Maybe you want to send to an SMS service. You can do that with a little code in the OnSubmit Before Box and a Dynamic To element in the Email Setup.

Bob

PS This is explained in more detail in Chapter 7 of The ChronoForms Book
nml375 16 Oct, 2010
Hi,
There's a limitation in the JMail and JMailHelper class, which prevents the inclusion of any lines starting with "content-type:|to:|cc:|bcc:" in the message body. Unfortunately, to get around this, you'll have to craft your email manually, _not_ using the functions of the JMail class (see http://www.php.net/manual/en/function.mail.php for some rough pointers on how to send mails using native php-code).

/Fredrik
This topic is locked and no more replies can be posted.