close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

email sent to sender, not bcc recipient

Thread began 10/22/2020 10:27 am by Sweens | Last modified 10/23/2020 12:35 pm by Ray Borduin | 30 views | 6 replies |

Sweens

email sent to sender, not bcc recipient

Hi Ray

Going round in circles with this. The attached page sends the email to the contact form enquirer, but not the intended recipient in the bcc field.

I've tried adding

<?php
global $rsEnq;
?>

to the body file, but that makes no difference.

Hope you can spot something obvious.

Many thanks

Chris

Sign in to reply to this post

Ray BorduinWebAssist

You have the recipient and send buttons in two separate forms. They would have to be in the same form. Just use one large <form> tag around both steps and that should fix it.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Hi Ray

I've tried that and the form doesn't send at all.

The first form creates the session; I've tested that and displayed the email address from the session on the 2nd form (so the recordset is created). The email is sent to the enquirers address, but the bcc isn't sent to the Session recordset address.

Cheers

Chris

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to debug this live. I can only imagine that the recordset isn't getting the correct bcc email address. That is the only thing that I can think of that would cause it to not send.

I would start by adding this below the recordset but above the email code:

php:
<?php

if (isset($_POST["btnSend"]) || isset($_POST["btnSend_x"]))     { 
  die(
"bcc email: " $rsEnq->getColumnVal("MemEmail"));
}
?>



That would at least confirm if the email address was coming in from the recordset correctly or not.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Thanks Ray

Just retested with that and after submitting the form, the page shows

bcc email:

Hmmnn...

Yet if I put the rsEnq email field onto the page, it shows the email address, so it is present in the recordset.

Cheers

Chris

Sign in to reply to this post

Ray BorduinWebAssist

The session variable must not be persisting properly.

Try changing line 23 from this:

if (!session_id()) session_start();

to:

@session_start();

Then you could test if session variable setting and display is working in general. Can you set a session variable on one page and display it on the next?

It could be an issue with your php.ini file and the session_save_path folder or permissions on that folder.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

@session_start();

That did the trick!

Many thanks Ray - excellent support, as usual.

Cheers

Chris

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...