Problem sending e-mail


#1

Hello there,
I have a downloaded mailform in PHP om my website and i am testing it,
but i don’t recieve any mail?
What can there be wrong?
Greetz


#2

Try using a simple mail(). Does it work?


#3

Thx for your reaction,
I now have a file called: ‘mailtest.php’ in mypublic_html dir.

<?php
	$msg = "Some message text to test"
	mail("my@email.nll","It worked when you can read this",$msg);
	echo("<h1>I hope you recieve mail</h1>");
	?>

In my browser i go to:

https://my-username.000webhostapp.com/mailtest.php

Now i get a HTTP500 error?

regards


#4

You forgot $msg semicolon


#5

Thnx,

With the ; the HTTP500 error disapears. And now the

I hope you recieve mail

returns.
But i still can’t recieve an email.

Regards,


#6

Hi @JaccoWalraven!

Mailing functionality works good for your site. You forgot to add the proper headers. Check the mailtest.php script again and see what’s updated.


#7

Thnxx for your reply.
I.v seen the script and modified it with my own email adress.
Sadly still don’t recieve any mail.

Regards,


#8

Your provider may be blocking our mailing servers. Try using another email address from another provider. E-mails are receiving shortly on GMail.