I need help with a PHPMailer problem

Asked by:
bartonboley@yahoo.com / 34 Points
Time:
2014-01-17 9:41 pm EST
Category:
Website Troubleshooting
Hits:
537
Hello, I'm still working with the phpMailer issue. I can't get it send the email, I thought I saw that since the mail server we are using is the local server, I use the below line:
$mail->Host = "localhost";

It also displays the below errors at the bottom of the page, even before the form fields are entered and the submit button is clicked.

Message could not be sent.
Mailer Error: Message body empty

To ask this user for more information, please first login.

To submit an answer, please login.

Is the mail server for drill4waterequipmentleasing.com on the same server that hosts the web page? I've been using that article, but must not be understanding something. Could you look at my page and see if anything jumps out at you?

get_started_step_5.php
bartonboley@yahoo.com
34 Points
2014-01-18 12:13 am EST

ANSWERS

0

johnpaulb-whh2
Staff
12,339 Points
2014-01-17 11:47 pm EST
Hello bartonboley@yahoo.com,

Thank you for your question. As long as the PHP script that you are using is on the same server, localhost is correct.
$mail->Host = "localhost";


I recommend following our article titled How do I use phpMailer to Send Email through PHP, since it provides a successful example.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

To submit a comment on this answer, please first login.

Want to share this Question?
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}