• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: documentation for $userEmail array

documentation for $userEmail array 14 years 2 months ago #12779

  • mm
  • mm's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi all,
I would like to use custom script for sanding e-mail, but I cannot find documentation for $userEmail array. What elements of array there are, what is they name etc.
I would like to modify recipient depending of dropdown selection, is it possible?
Can you please help me?
The administrator has disabled public write access.

Re:documentation for $userEmail array 14 years 2 months ago #12932

  • anfrox
  • anfrox's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
agreed, but for me the custom emailing just breaks the script and none of emails are sent if i add something like $userEmail = "foo bar"; to the "Email scripts" window. This feature is really needed by my client and i cannot figure any workaround..
The administrator has disabled public write access.

Re:documentation for $userEmail array 14 years 2 months ago #12933

  • anfrox
  • anfrox's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
fine, for everyone else struggling with this one:

this variable is actually an array so to set a custom email text you have to do it this way $userEmail = "foo bar"; and it works then...
The administrator has disabled public write access.

Re:documentation for $userEmail array 14 years 2 months ago #12944

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

The $userEmail variable is actually an array. To see its elements, you can simply use the following code:
print_r($userEmail); die();

Note that this will be displayed after the form will be submitted.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

documentation for $userEmail array 9 years 11 months ago #31180

  • _rsuser
  • _rsuser's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 2
Array Entry         Description of contents
 
$userEmail['to']           The ADDRESS to whom the email is sent
$userEmail['cc']           The ADDRESS to whom the email is CCed
$userEmail['bcc']          The ADDRESS to whom the email is BCCed
$userEmail['from']          The ADDRESS from whom the email will be sent
$userEmail['fromname']      The NAME from whom the email will be sent
$userEmail['replyto']         The REPLYTO address of the email
$userEmail['text']           The content (body) of the email
$userEmail['subject']		The subject line of the email
$userEmail['mode']		Email contents format: 0 => plain text, 1 => HTML
$userEmail['files']		An array of filenames that will be sent as attachments
The administrator has disabled public write access.
The following user(s) said Thank You: info7650
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!