Could someone please help. Below is the php code you suggested - modified with my information. I modified it with my information but it doesn't work. The php script runs because I get the thank you page, however I never receive the email. I am a brand new customer and have been working at this for 3 hours... If this form can't be made to work I'll just have to cancel my order. Thanks for the help BobWorks
forgot the code - sorry <html> <head><title>Test email via php</title></head> <body> <? require_once "Mail.php"; $thankyouurl = "http://bobworks.com/thanks.html"; $from = "Sender <[email protected]>"; $to = "Recipient <[email protected]>"; $subject = "This is a test email sent via php"; $body = "This is a test email"; $host = "mail.bobworks.com"; $username = "[email protected]"; $password = "bobbin59"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); header( "Location: $thankyouurl" ); exit ; ?> </body> </html>
Who is this "[email protected]"? Can you try using another email address such as a yahoo or Gmail test account? Does [email protected] get emails from other sources? Also check the bulk/junk/spam folder of [email protected]
[email protected] is my regular email that I know works.... I have tried to plug in my gmail account as well ... still nothing [email protected] is the address that can be substituted.
Open a ticket to our support department using your control panel and have them check the SMTP log to verify if the email was sent from mail.bobworks.com. Make sure you tell them the To and From address and a time frame on when the email was sent.
Did you get a resolution to this? Wondering if you ever resolved this, and if so, what was the resolution?
I think you posted a similar question about this. Did you look at this kb? http://support.Winhost.com/KB/a826/how-to-send-email-from-a-php-application.aspx If you are planning to use another email server other than Winhost, you will need to contact the network administrator and find out what values need to be set on your code. They may also need SMTP authentication. Either way, 'localhost' as the smtp server will not work because the web servers smtp service has been disabled.