close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Check Variable If Email Was Sent

Thread began 9/24/2009 1:51 pm by Cologne | Last modified 9/25/2009 7:51 pm by Eric Mittman | 1906 views | 3 replies |

Cologne

Check Variable If Email Was Sent

Hi,

I want to use the UE extension to send my Email via Ajax. It works well, but I need a VARIABLE that says everything was send.

Is there a variabel I can check if the email was successfully send, so I can tell the user "Email was sent"

thanks,
Denis

Sign in to reply to this post

Eric Mittman

There is no specific variable that is set when the email is sent. If you need to add in this to your existing Universal Email implementation one way to do it would be to alter the UE code just after the call to the mail function in php, or the sending of the message in the other server languages. Just after the sending you can set a variable to act as a flag to let you know that the email was sent, or at least the mail call has been made.

This is a custom implementation though that is not a supported feature. If you are using php you can just search through the mail_PHP.php file for the mail call and add in your variable after this. If you do it here just keep in mind that this page will get rewritten if you make any edits to your email server behavior.

Sign in to reply to this post

Cologne

hmmm...

I thought I could do something here:

//Send Mail All Entries
if ("index2.php"!="") {
header("Location: index2.php");
}



What will happen if something whent wrong? in the extension, aint there a check if the mail is gone? like in DFP2?

This is what I need it for Ajax:

//Send Mail All Entries
if (""!="") {
header("Location: ");
}
}



what happens if its:

//Send Mail All Entries
if (""!="test") {
header("Location: ");
}
}




Any other suggestions?

Denis

Sign in to reply to this post

Eric Mittman

You can use the header redirect to send the user to another page or add in a variable that you will use for your ajax. This is on a higher level though but it should yield the same result if your goal is only to add in a variable. You will have the same issue with this part of the code being overwritten if you make any updates to the UE code though so keep that in mind.

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