Log in

View Full Version : Emails not arriving as required



Webiter
12-22-2011, 09:49 PM
Getting stuck with this email trial.

This test position (http://www.scriptest.webitry.net) has a old eCard script. All works fine except for the test emails that I am sending to my own email address. The test mails and the cards are not being delivered.

This is the send function


function send_ecard() {
document.ecard_form.action = "<?php echo $HTTP_SERVER_VARS["PHP_SELF"] ?>";
document.ecard_form.target = "_self";
document.ecard_form["submit_action"].value = "send";
if (check()) { document.ecard_form.submit(); }
}

I have also tried
"<?php echo $_SERVER["PHP_SELF"] ?>"; but still do not get delivery of mail!

Just seeking to ensure that I am inputting correctly at the Form Action


<FORM NAME="ecard_form" ACTION="#" METHOD="post">

as I think this could be causing the problem of the non delivery. Is this likely to be the case?

fastsol1
12-24-2011, 08:40 PM
Did this script work previously, cause as far as I know you can't send an email with javascript. You need to use php in the backend to send the email.

djr33
12-24-2011, 11:34 PM
You need to determine whether the email is being sent. If it is being sent and not received, there may be some underlying technical problem, or, more likely, it's probably in your spam folder. Automated emails can unfortunately often arrive in the spam folder by default.

If it's not being sent, then as said above, you'll need to figure out what's going on in the PHP.

Webiter
01-07-2012, 12:07 AM
You got it djr33.... found them in the spam folder! :o

djr33
01-07-2012, 06:40 AM
Unfortunately, automated emails often do that.

There are a few ways to make that less likely:
1. Individually, you can always add the email to your "trusted" list or whatever your email program has. But that won't help anyone else who is receiving the email (for the first time, for example). So maybe it's best to leave it as-is so you see what everyone else will see.

2. Make them into "real" emails. Right now they look like uninteresting automated emails. That's what they are:
A) Add real content to them (if the body is empty or short, it's probably not a real message) so that any program that analyzes the text sees "real" sentences, etc. That's why many spam messages now have oddly phrased stories-- they look real enough that they aren't easily filtered.
B) Add a "from" and a "reply-to" address. Add other headers if you can. That way it will be a real message, as if it were sent from your account.
C) Give it a good title. That can be important.

That will probably help. It won't entirely fix it, but it will be better...