email doesn't send through smtp
I contacted my domain host (IX Hosting) about setting up pear with smtp. They told me that I cannot use smtp I must used php mail. Please advise. Error can be viewed here : wci_upload.php
I contacted my domain host (IX Hosting) about setting up pear with smtp. They told me that I cannot use smtp I must used php mail. Please advise. Error can be viewed here : wci_upload.php
the link you provide goes do an upload page, I don't see an error trying to upload, the upload seams to work.
In the universal Email settings, there are 2 options for the email object:
mail
Pear Mail For SMTP
if you select mail, it uses the php mail() function.
I do have a php file I include to authenticate emails I send with other forms I have on the site.
I did select mail in UE. After attempting an upload this is the message I get...
array(12) {
["wci_upload_upload"]=>
&string(53) "2012 LLL Poster Banner Massage Envy Lincoln color.pdf"
["waue_wci_upload_1_Total"]=>
&int(0)
["waue_wci_upload_1_Index"]=>
&int(0)
["waue_wci_upload_1_Remaining"]=>
&int(0)
["waue_wci_upload_1_Log"]=>
&string(156) "Sending To: myorders@exp4me.com... mail() [function.mail]: SMTP server response: 504 Authenticate first (#5.5.0) - Failure
"
["waue_wci_upload_1_From"]=>
&string(26) "webuploads@ericsxpress.com"
["waue_wci_upload_1_To"]=>
&string(19) "myorders@exp4me.com"
["waue_wci_upload_1_Subject"]=>
&string(13) "File Uploaded"
["waue_wci_upload_1_Body"]=>
&string(312) "
--WAMULTIBREAKWA
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
The file 2012 LLL Poster Banner Massage Envy Lincoln color.pdf has been uploaded.
--WAMULTIBREAKWA
Content-Type: text/html
The file 2012 LLL Poster Banner Massage Envy Lincoln color.pdf has been uploaded.
--WAMULTIBREAKWA--
"
["waue_wci_upload_1_Header"]=>
&string(387) "MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="WAMULTIBREAKWA"
From: webuploads@ericsxpress.com
Reply-To: webuploads@ericsxpress.com
Return-Path: webuploads@ericsxpress.com
X-Sender: webuploads@ericsxpress.com
X-Priority: 1
Date: Mon, 04 Jun 2012 10:58:51 -0400 (EDT)
Message-ID: <31718.dc6f74b2d15c76a2dfbd02f3e46c37f5@ericsxpress.com>
Organization: EXP Inc
"
["waue_wci_upload_1_Error"]=>
&string(105) "mail() [function.mail]: SMTP server response: 504 Authenticate first (#5.5.0)"
["waue_wci_upload_1_Status"]=>
&string(7) "Failure"
}
the error is saying that the smtp server requires authentication.
the php mail() function does not support authentication. double check with your host to determine what SMTP server they offer that can be used with the php mail() function.
My isp said I can use localhost port 25 no authentication. When I did I got this error...
Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in D:\hshome\c293604\wci.ericsxpress.com\webassist\email\PEAR_Mail_using_SMTP_php.php on line 113
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.;C:\Program Files\HSphere\3rdparty\PHP\PHP5\pear') in D:\hshome\c293604\wci.ericsxpress.com\webassist\email\PEAR_Mail_using_SMTP_php.php on line 113
I don't see a file called Mail.php.
Where should it be located?
in your initial message, you said the host does not support pear mail.
in the universal email settings for the mail object type, don't select the Pear Mail for SMTP option, select the mail option instead.
Apparently I can use it. This is the error I get:
Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in D:\hshome\c293604\wci.ericsxpress.com\webassist\email\PEAR_Mail_using_SMTP_php.php on line 113
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.:/cgi-bin/php/PEAR') in D:\hshome\c293604\wci.ericsxpress.com\webassist\email\PEAR_Mail_using_SMTP_php.php on line 113
The PEAR_Mail_using_SMTP_php.php uses this command on line 113 - require_once($mailObj->PearPath."Mail.php");
Can I remove PearPath. and edit it to read - require_once($mailObj->"path\to\Mail.php");
in the email settings, one of the settings is the path to pear. you will need to ask your hosting company what the path to pear is, otherwise, just use the php mail() object instead, as pear is really only needed if you have to pass authentication.
That took care of it. Thank you for sticking with me through this. I really appreciate it.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.