php mail() form problem

any php expert in here who can fix the form for me ?
will pay for help.
 
I simply edited the email adress so I dont post my email adress in here... of course the code has my correct email.
 
Oh :)

Try removing @ from the front of the mail function and then sending the mail.
 
didnt help aswell.

I tried:

remove @
using wordpress wp_mail() instead of mail()
same issue, always giving "message sent" but no email sent
 
Form is actually based on two files

one with the form and the other the one above with the sending function.

ANY PHP EXPERT LIKES TO FIX THIS FOR ME FOR A PAYMENT ?
 
Ok, try changing if(!eregi... line with this one:

PHP:
if(!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/",$email)){
 
I installed wp plugin "advanced email options" to test if its working.
and it is working, when I click send testmail it always comes through. using mail() funktion and using wp_mail() function.
so no hosting issue.
 
Did you check your antispam filter ? Perhaps the mail is sent but blocked...
 
no spam filter issue as well. simply not sending email.

I am simply looking for someone now who will fix that for me :(
i dont care if the form will be sent via mail() wp_mail() or anything else. I just need my form to be sent via email..
 
Did you try mail($your_email,$email_subject,$email_content, $header) alone to see if it works ?
 
I had similar problem few days ago, but "Configure SMTP" plugin for Wordpress fixed it.
 
its not a sending problem. error has to be in the code I posted.
 
was the from header "Ydesign" when you tested the mail function alone? sometimes valid email is required
 
Last edited:
Back
Top