?
Solved

smtp settings for GoDaddy

Posted on 2014-01-03
2
Medium Priority
?
650 Views
Last Modified: 2014-01-04
Ok this is wierd.  I am working on a php page and all I have ever done is us asp.  The site is working fine but I want to send an smtp email from a "contact" form on the site and I don't know what the parameters are for a godaddy email account.  Here is my code...its not working...any help would be much appreciated:

	if ($errmsg == '') {
		$content = "A customer has submitted contact information through the website form:\n\n";
		$content .= "Email Address: " . $email . "\n";
		$content .= "Phone Number: " . $phone . "\n";
		$content .= "Additional comments: " . $comments . "\n";
		
		/* mail setup recipients, subject etc */
		$recipients = "rschneider@rosemountata.com";
		//$recipients = "rickwschneider@gmail.com";
		$headers["From"] = "intro@rosemountata.com";
		$headers["To"] = "rschneider@rosemountata.com";
		//$headers["To"] = "rickwschneider@gmail.com";
		$headers["Subject"] = "Intro Lesson Signup";
		
		/* SMTP server name, port, user/passwd */
		$smtpinfo["host"] = "mailstore1.secureserver.net";
		$smtpinfo["port"] = "25";
		$smtpinfo["auth"] = true;
		$smtpinfo["username"] = "username";
		$smtpinfo["password"] = "pwd";
		
		/* Create the mail object using the Mail::factory method */
		$mail_object =& Mail::factory("smtp", $smtpinfo);
		$mail_object->send($recipients, $headers, $emailbody);
	}

Open in new window


For whatever it
0
Comment
Question by:Bob Schneider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Assisted Solution

by:lruiz52
lruiz52 earned 1000 total points
ID: 39755506
smtp settings for godaddy is;

smtpout.secureserver.net

http://support.godaddy.com/help/article/4714/setting-up-your-email-address-with-imap
0
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 1000 total points
ID: 39755522
Ok, your DNS and mail appears to be on Godaddy but your hosting is on BHI using IIS7.

I'm pretty sure that "mailstore1.secureserver.net" is not a SMTP host.  The SMTP server (to send email) that I use is 'smtpout.secureserver.net' on port 465 which requires SSL.  I'm using 'pop.secureserver.net' to receive email on port 995 which also uses SSL.  I'm not using 'Mail::factory method' so you'll have to look that up to see what the requirements are.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question