TOPIC:

Include signature image (not as an attachment) in the admin email (Html code)? 1 month 2 weeks ago #261932

  • webwzrd
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
This thread was extremely helpful. Thank you very much.

One quick question; is there a string that can be added to show the user's IP address?

Thanks again

Please Log in or Create an account to join the conversation.

Include signature image (not as an attachment) in the admin email (Html code)? 1 month 2 weeks ago #261933

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 932
  • Karma: 2
  • Thanks: 50
Hi,

you can try like this:
$this->execPieceByName('ff_InitLib');
$from ='tihana.krivic@crosstec.org'; //change email
$fromname = 'Tihana';  //change name
$subject = 'The New Subject'; // Change to your preferred Email subject
$recipient = 'nesto@gmail.com'; // Change to your admin Email address

$signature= ff_getSubmit('signature');   //replace signature with name of element for your signature (not title)
$ip=ff_getSubmit('ip');  replace signature with name of element for your IP(not title)
$attachment=null;
$isHtml = true;

$body =  "
<html><body>
<h1>This is the title of email </h1>

<table>
<tr>
<td>
   <strong>Name:</strong>
</td>
<td>
   $name
</td>
</tr>

<tr>
<td>
   <strong>Signature:</strong>
</td>
<td>
   <img src= 'https://YOURDOMAIN.com/media/breezingforms/signatures/".$signature."' alt='mypicture' width='150' height='150'>
</td>
</tr>

<tr>
<td>
   <strong>IP Adress:</strong>
</td>
<td>
   $ip
</td>
</tr>

</table>
</body></html>";

$this->sendMail($from, $fromname, $recipient, $subject, $body, $attachment, $isHtml);

Note: in your form create a hidden field with the name 'ip', and in properties in section 'value' insert this code to get the IP address of the user.
<?php return $_SERVER[REMOTE_ADDR];?>

Let me know the result!

Regards,
Mirko

Please Log in or Create an account to join the conversation.

Include signature image (not as an attachment) in the admin email (Html code)? 1 month 2 weeks ago #261934

  • webwzrd
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
PERFECT! It worked wonderfully.

Thank you for such a fast solution. Great support!!!

Please Log in or Create an account to join the conversation.

Include signature image (not as an attachment) in the admin email (Html code)? 1 month 2 weeks ago #261940

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 932
  • Karma: 2
  • Thanks: 50
Hi,

I'm glad I can help you! :)

If you have more questions, feel free to ask!



P.S. Please keep us motivated by leaving a small review here:
extensions.joomla.org/extension/contacts...orms/breezing-forms/ (Please turn off your VPN and local Apache prior reviewing as your review might get blocked)

Much appreciated!

Regards,
Mirko

Please Log in or Create an account to join the conversation.

Last edit: Post by Mirec.
Moderators: ForumSupport
Time to create page: 0.049 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!