Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

smtp settings for GoDaddy

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
SOLUTION
Avatar of lruiz52
lruiz52
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial