close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Emails not sent

Thread began 5/27/2021 6:02 am by Sweens | Last modified 5/28/2021 10:40 am by Ray Borduin | 493 views | 6 replies |

Sweens

Emails not sent

Hi Ray

The attached form (in a modal, if that's relevant) appears to work, in that after submitting the form, you are redirected to the correct page. However, no emails are sent!

Is there something obvious I've missed?

cheers

Chris

Sign in to reply to this post

Ray BorduinWebAssist

I don't see an obvious problem. I'd probably debug it by removing the redirect from the email and then adding code below the email code like:

php:
if (isset($_POST["Submit"]) || isset($_POST["Submit_x"]))     {

  var_dump($Email);
  die();
}



That will give you more information about the outgoing email and maybe you can spot the issue. Maybe the TO or FROM isn't set correctly, or maybe there is an error in the body or something that is causing it to fail.

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

Sweens

Thanks Ray - I've done that and get a load of code, with the following in bold.

Could not instantiate mail function.

" ["BodyFile"]=> string(38) "../../webassist/email/Rotary/cttee.php" ["BodyFormat"]=> string(0) "" ["BodyText"]=> string(0) "" ["BurstSize"]=> string(3) "200" ["BurstTime"]=> string(1) "1" ["CC"]=> array(0) { } ["CharSet"]=> string(5) "UTF-8" ["Debugoutput"]=> string(4) "html" ["EmailsSent"]=> int(1) ["Error"]=> bool(true) ["ErrorMessage"]=> string(60) "Could not instantiate mail function.

I've looked up the error message and all the email addresses are valid.

Chris

Sign in to reply to this post

Ray BorduinWebAssist

Can you send me the full dump so I can see what else might be there that could cause the error?

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

Sweens

Thanks Ray

(Note I've tried altering the page since sending you the files)

See pm.

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

Try deleting these lines:

$Email->ReplyTo = "".($rsMemClub->getColumnVal("MemEmail")) ."";
$Email->ReturnPath = "".($rsMemClub->getColumnVal("MemEmail")) ."";
$Email->BurstSize = "200";
$Email->BurstTime = "1";
$Email->WaitTime = "1";

Return path should never be set to the same email address as the TO... return path is the email address to send to when the email fails, so you can't send a fail message to the address that failed.

Reply to also makes no sense as the TO address. The other lines are not needed for a single email.

After making those changes try again and let me know.

The next step would be to remove the BCC. Then maybe hard code the TO and FROM to see if it works when it isn't coming from the database. You will have to narrow down what is causing the issue so it can be solved.

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

Sweens

Thanks Ray - all now working properly.

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...