[windows] Register Module email settings

zebadee

Joined: 2010-01-28
Posts: 21
Posted: Mon, 2010-08-02 10:33

can anyone tell me how to set up email for gallery3 please I've installed the register modules but just get send message errors when I use it.

Can anyone let me know if I have to alter a config file within gallery3 or modify the php.ini or some other file please

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2010-08-04 04:51

In general, the mail config file is modules/gallery/config/sendmail.php

That probably won't help you though if you're having an underlying error. What's in your Apache error logs? What errors do you get? More details please!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Tue, 2010-08-10 11:54

sorry for the delay, heres what happens

you try to register and click the register button and nothing happens for the user registering, you go into the back end and see there is a user waiting to be confirmed you click activate and get errors

Quote:
1.

D:/gallery2/modules/gallery/libraries/Sendmail.php[ 89 ]
84 // The docs say headers should be separated by \r\n, but occasionaly that doesn't work and you 85 // need to use a single \n. This can be set in config/sendmail.php 86 $headers = implode($this->header_separator, $headers); 87 $message = wordwrap($this->message, $this->line_length, "\n"); 88 if (!$this->mail($to, $this->subject, $message, $headers)) { 89 throw new Exception("@todo SEND_MAIL_FAILED"); 90 } 91 return $this; 92 } 93 94 public function mail($to, $subject, $message, $headers) {
2.

D:/gallery2/modules/register/helpers/register.php[ 103 ] » Sendmail_Core->send()

98 ->to($email)
99 ->subject($subject)
100 ->header("Mime-Version", "1.0")
101 ->header("Content-type", "text/html; charset=iso-8859-1")
102 ->message($message->render())
103 ->send();
104 }
105}

3.

D:/gallery2/modules/register/helpers/register.php[ 50 ] » register_Core::_sendemail( arguments )

email

string(19) "removed for display"

subject

array(2) (
"private: _raw_string" => string(28) "Your userid has been created"
"protected: _is_safe_html" => bool TRUE
)

message

array(3) (
"protected: kohana_filename" => string(60) "D:/gallery2/modules/register/views/register_welcome.html.php"
"protected: kohana_filetype" => string(4) ".php"
"protected: kohana_local_data" => array(3) (
"csrf" => string(19) "removed for display"
"user (type: Pending_user_Model)" => array(32) (
"protected: has_one" => array(0)
"protected: belongs_to" => array(0)
"protected: has_many" => array(0)
"protected: has_and_belongs_to_many" => array(0)
"protected: has_many_through" => array(0)
"protected: load_with" => array(0)
"protected: object" => array(8) (
"id" => string(1) "3"
"name" => string(3) "Zeb"
"state" => integer 2
"full_name" => string(16) "Stewart Cunliffe"

"request_date" => string(10) "1281441076"
)
"protected: changed" => array(0)
"protected: related" => array(0)
"protected: _valid" => bool FALSE
"protected: _loaded" => bool TRUE
"protected: _saved" => bool TRUE
"protected: sorting" => array(1) (
"id" => string(3) "asc"
)
"protected: rules" => array(0)
"protected: object_relations" => array(0)
"protected: changed_relations" => array(0)
"protected: object_name" => string(12) "pending_user"
"protected: object_plural" => string(13) "pending_users"
"protected: table_name" => string(13) "pending_users"
"protected: table_columns" => array(8) (
"id" => array(8) (
"type" => string(3) "int"
"min" => float -2147483648
"max" => integer 2147483647
"sql_type" => string(3) "int"
"length" => string(1) "9"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool TRUE
)
"name" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(2) "32"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"state" => array(8) (
"type" => string(3) "int"
"min" => float -2147483648
"max" => integer 2147483647
"sql_type" => string(3) "int"
"length" => string(1) "9"
"default" => string(1) "0"
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"full_name" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(3) "255"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool FALSE
)

"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(3) "255"
"default" => NULL
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
"request_date" => array(8) (
"type" => string(3) "int"
"min" => float -2147483648
"max" => integer 2147483647
"sql_type" => string(3) "int"
"length" => string(1) "9"
"default" => string(1) "0"
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
)
"protected: ignored_columns" => NULL
"protected: updated_column" => NULL
"protected: created_column" => NULL
"protected: primary_key" => string(2) "id"
"protected: primary_val" => string(4) "name"
"protected: foreign_key" => array(0)
"protected: table_names_plural" => bool TRUE
"protected: reload_on_wakeup" => bool TRUE
"protected: db (type: Database_Mysql)" => string(51) "Database_Mysql object - details omitted for display"
"protected: db_applied" => array(0)
"protected: db_builder (type: Database_Builder)" => array(18) (
"protected: order_directions" => array(3) (
0 => string(3) "ASC"
1 => string(4) "DESC"
2 => string(6) "RAND()"
)
"protected: db (type: Database_Mysql)" => string(51) "Database_Mysql object - details omitted for display"
"protected: select" => array(0)
"protected: from" => array(0)
"protected: join" => array(0)
"protected: where" => array(0)
"protected: group_by" => array(0)
"protected: having" => array(0)
"protected: order_by" => array(0)
"protected: limit" => NULL
"protected: offset" => NULL
"protected: set" => array(0)
"protected: columns" => array(0)
"protected: values" => array(0)
"protected: type" => NULL
"protected: distinct" => bool FALSE
"protected: reset" => bool TRUE
"protected: ttl" => bool FALSE
)
"protected: with_applied" => array(0)
)
"site_url" => string(19) "removed for display"
)
)

45 static function send_user_created_confirmation($user, $requires_first=false) {
46 $message = new View("register_welcome.html");
47 $message->user = $user;
48 $message->site_url = $requires_first ? url::abs_site("register/first/{$user->hash}") :
49 url::abs_site("");
50 self::_sendemail($user->email, t("Your userid has been created"), $message);
51 }
52
53 static function send_confirmation($user) {
54 $message = new View("confirm_registration.html");
55 $message->confirm_url = url::abs_site("register/confirm/{$user->hash}");

4.

D:/gallery2/modules/register/helpers/register.php[ 91 ] » register_Core::send_user_created_confirmation( arguments )

user

array(32) (
"protected: has_one" => array(0)
"protected: belongs_to" => array(0)
"protected: has_many" => array(0)
"protected: has_and_belongs_to_many" => array(0)
"protected: has_many_through" => array(0)
"protected: load_with" => array(0)
"protected: object" => array(8) (
"id" => string(1) "3"
"name" => string(3) "Zeb"
"state" => integer 2
"full_name" => string(16) "Stewart Cunliffe"

"request_date" => string(10) "1281441076"
)
"protected: changed" => array(0)
"protected: related" => array(0)
"protected: _valid" => bool FALSE
"protected: _loaded" => bool TRUE
"protected: _saved" => bool TRUE
"protected: sorting" => array(1) (
"id" => string(3) "asc"
)
"protected: rules" => array(0)
"protected: object_relations" => array(0)
"protected: changed_relations" => array(0)
"protected: object_name" => string(12) "pending_user"
"protected: object_plural" => string(13) "pending_users"
"protected: table_name" => string(13) "pending_users"
"protected: table_columns" => array(8) (
"id" => array(8) (
"type" => string(3) "int"
"min" => float -2147483648
"max" => integer 2147483647
"sql_type" => string(3) "int"
"length" => string(1) "9"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool TRUE
)
"name" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(2) "32"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"state" => array(8) (
"type" => string(3) "int"
"min" => float -2147483648
"max" => integer 2147483647
"sql_type" => string(3) "int"
"length" => string(1) "9"
"default" => string(1) "0"
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"full_name" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(3) "255"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool FALSE
)

"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(3) "255"
"default" => NULL
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
"request_date" => array(8) (
"type" => string(3) "int"
"min" => float -2147483648
"max" => integer 2147483647
"sql_type" => string(3) "int"
"length" => string(1) "9"
"default" => string(1) "0"
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
)
"protected: ignored_columns" => NULL
"protected: updated_column" => NULL
"protected: created_column" => NULL
"protected: primary_key" => string(2) "id"
"protected: primary_val" => string(4) "name"
"protected: foreign_key" => array(0)
"protected: table_names_plural" => bool TRUE
"protected: reload_on_wakeup" => bool TRUE
"protected: db (type: Database_Mysql)" => string(51) "Database_Mysql object - details omitted for display"
"protected: db_applied" => array(0)
"protected: db_builder (type: Database_Builder)" => array(18) (
"protected: order_directions" => array(3) (
0 => string(3) "ASC"
1 => string(4) "DESC"
2 => string(6) "RAND()"
)
"protected: db (type: Database_Mysql)" => string(51) "Database_Mysql object - details omitted for display"
"protected: select" => array(0)
"protected: from" => array(0)
"protected: join" => array(0)
"protected: where" => array(0)
"protected: group_by" => array(0)
"protected: having" => array(0)
"protected: order_by" => array(0)
"protected: limit" => NULL
"protected: offset" => NULL
"protected: set" => array(0)
"protected: columns" => array(0)
"protected: values" => array(0)
"protected: type" => NULL
"protected: distinct" => bool FALSE
"protected: reset" => bool TRUE
"protected: ttl" => bool FALSE
)
"protected: with_applied" => array(0)
)

requires_first

string(19) "removed for display"

86 $new_user->save();
87
88 $user->hash = md5(uniqid(mt_rand(), true));
89 $user->state = 2;
90 $user->save();
91 self::send_user_created_confirmation($user, $password);
92
93 return $new_user;
94 }
95
96 private static function _sendemail($email, $subject, $message) {

5.

D:/gallery2/modules/register/controllers/admin_register.php[ 71 ] » register_Core::create_new_user( arguments )

id

string(1) "3"

66 $post->add_rules("activate", "alpha_numeric");
67 if ($post->validate()) {
68 $names = array();
69 if (!empty($post->activate)) {
70 foreach ($post->activate as $id) {
71 $user = register::create_new_user($id);
72 $names[] = $user->name;
73 }
74
75 message::success(t("Activated %users.", array("users" => implode(", ", $names))));
76 }

6.

{PHP internal call} » Admin_register_Controller->activate()
7.

D:/gallery2/modules/gallery/controllers/admin.php[ 62 ] » call_user_func_array( arguments )

function_name

array(2) (
"0 (type: Admin_register_Controller)" => array(1) (
"private: theme" => NULL
)
1 => string(8) "activate"
)

parameters

array(0)

57
58 if (!method_exists($controller_name, $method)) {
59 throw new Kohana_404_Exception();
60 }
61
62 call_user_func_array(array(new $controller_name, $method), $args);
63 }
64
65 private static function _reauth_check() {
66 $session = Session::instance();
67 $last_active_auth = $session->get("active_auth_timestamp", 0);

8.

{PHP internal call} » Admin_Controller->__call( arguments )

controller_name

string(8) "register"

args

array(1) (
0 => string(8) "activate"
)

9.

D:/gallery2/system/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( arguments )

object

array(1) (
"private: theme" => NULL
)

args

array(2) (
0 => string(8) "register"
1 => array(1) (
0 => string(8) "activate"
)
)

326
327 // Start the controller execution benchmark
328 Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');
329
330 // Execute the controller method
331 $method->invokeArgs($controller, $arguments);
332
333 // Controller method has been executed
334 Event::run('system.post_controller');
335
336 // Stop the controller execution benchmark

10.

{PHP internal call} » Kohana_Core::instance( arguments )

0

NULL

11.

D:/gallery2/system/core/Event.php[ 208 ] » call_user_func_array( arguments )

function_name

array(2) (
0 => string(6) "Kohana"
1 => string(8) "instance"
)

parameters

array(1) (
0 => NULL
)

203 Event::$data =& $data;
204 $callbacks = Event::get($name);
205
206 foreach ($callbacks as $callback)
207 {
208 call_user_func_array($callback, array(&$data));
209 }
210
211 // Do this to prevent data from getting 'stuck'
212 $clear_data = '';
213 Event::$data =& $clear_data;

12.

D:/gallery2/application/Bootstrap.php[ 67 ] » Event_Core::run( arguments )

name

string(14) "system.execute"

62
63// End system_initialization
64Benchmark::stop(SYSTEM_BENCHMARK.'_system_initialization');
65
66// Make the magic happen!
67Event::run('system.execute');

13.

D:/gallery2/index.php[ 94 ] » require( arguments )

0

string(37) "D:\gallery2\application\Bootstrap.php"

89if (file_exists("local.php")) {
90 include("local.php");
91}
92
93// Initialize.
94require APPPATH . "Bootstrap" . EXT;

Environment

will check the gallery/apache logs and get back to you

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Tue, 2010-08-10 12:11

the gallery logs only feature the following

Quote:
2010-08-10 12:53:34 +01:00 --- error: Exception [ 0 ]: @todo SEND_MAIL_FAILED
D:\gallery2\modules\gallery\libraries\Sendmail.php [ 89 ]
#0 D:\gallery2\modules\register\helpers\register.php(103): Sendmail_Core->send()
#1 D:\gallery2\modules\register\helpers\register.php(50): register_Core::_sendemail('zeb@null.net', Object(SafeString), Object(View))
#2 D:\gallery2\modules\register\helpers\register.php(91): register_Core::send_user_created_confirmation(Object(Pending_user_Model), '921078f2cab5071...')
#3 D:\gallery2\modules\register\controllers\admin_register.php(71): register_Core::create_new_user('3')
#4 [internal function]: Admin_register_Controller->activate()
#5 D:\gallery2\modules\gallery\controllers\admin.php(62): call_user_func_array(Array, Array)
#6 [internal function]: Admin_Controller->__call('register', Array)
#7 D:\gallery2\system\core\Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#8 [internal function]: Kohana_Core::instance(NULL)
#9 D:\gallery2\system\core\Event.php(208): call_user_func_array(Array, Array)
#10 D:\gallery2\application\Bootstrap.php(67): Event_Core::run('system.execute')
#11 D:\gallery2\index.php(94): require('D:\gallery2\app...')
#12 {main}

and the apache log even less

Quote:
10.5.2.49 - - [10/Aug/2010:12:53:33 +0100] "POST /index.php/admin/register/activate HTTP/1.1" 500 89882
10.5.2.49 - - [10/Aug/2010:12:53:34 +0100] "GET /favicon.ico HTTP/1.1" 404 309
10.5.2.49 - - [10/Aug/2010:12:53:37 +0100] "GET /favicon.ico HTTP/1.1" 404 309
10.5.2.49 - - [10/Aug/2010:12:54:24 +0100] "PROPFIND /d HTTP/1.1" 405 316
10.5.2.49 - - [10/Aug/2010:12:54:23 +0100] "OPTIONS / HTTP/1.1" 200 26887

the only worrying thing I see is the first line of the gallery log

Quote:
2010-08-10 12:53:34 +01:00 --- error: Exception [ 0 ]: @todo SEND_MAIL_FAILED

the sendmail.php simply contains the following 4 lines entires other than the headers and non active lines

Quote:
$config["from"] = "stewart@garfieldstreet.co.uk";
$config["line_length"] = 70;
$config["reply_to"] = "stewart@garfieldstreet.co.uk";
$config["header_separator"] = "\n";

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-08-10 12:59

You're running Gallery on Windows. First, Windows isn't a supported platform. Second, do you have an smtp server installed on the server?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Tue, 2010-08-10 13:47

yep sad to say it is windoz, and yes there is a hmail server sat on the box itself answering on all the usual ports

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-08-10 14:57

Not much time we can spend on trying to trouble shoot this being a windows box. First thing I'd check is if you can send email from PHP from any app.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Wed, 2010-08-11 21:31

Zeb.... I'm a windows dude.... Gimme some time.. I just got back from dirka dirka gihad.... I'll look into this shortly.

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Wed, 2010-08-11 21:31

ZEB....

Typically you don't need any sendmail installed if you are using IIS. You don't even need the SMTP server installed. But this is assuming you are using IIS. Apache is a different story.

Have you tried sendmail from a command line?

Use this: http://www.w3schools.com/PHP/php_mail.asp to make a php file and test it. I'm guessing either the ISP or Server is the issue...

If you are using gallery on a WINDOWS server, honestly, IIS is superior IF you are using Windows Server 2008/R2.

Can you provide specs?

32/64bit? / Windows version etc. Thanks!

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2010-08-12 07:39

thanks for the info and sorry for the delay getting stuff back to you, back at work today so have some time.

Windows 2003 server 32bit Apache/2.0.58 (Win32) PHP/5.2.9-1

have just created the script to send the mail and it works fine to other address on the boxes email server and also to external ones.

Just monitored the logs of the mail server as the send was supposed to take place when setting up an account and found the following all the accepts are done until I get a line stating

SENT: 554 Rejected - Message containing bare LF's.

so it looks like the email server on the box is rejecting the message because of \n have altered the mail config file to \r\n and still no luck

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Thu, 2010-08-12 15:34

I'm lost here. Is the mail server a different box other then where the gallery box is with 2003/Apache? I wanna make sure I have everything accurate.

----------

554 Rejected - Message containing bare LF's.

According to the SMTP specification, every line in an email message should be separated by the ASCII-codes 13 and 10 - carriage return (CR) and line feed (LF). Some spammers and incorrectly working software sends messages which are not correctly formatted. Use this setting to reject these messages. Please note that legitimate email might have incorrectly formatted line endings, if the sending software contains bugs.

If you who are a developer receive this problem, confirm that each line of your email message (both header and body) is ended with a carriage return and a line feed, and not just a line feed. How to do this depends on what programming language you are working with. In .C++, C#, and PHP add \r\n to the end of every line. In Visual Basic, add vbNewLine or vbCRLF.

On Windows, the default line separator is CRLF. On Linux and UNIX, the default separator is only LF. However, when sending an email message from a Linux/UNIX system, CRLF must always be used. Some email servers under Linux (such as Postfix) automatically replaces LF with CRLF. Hence, setting the line separator in the email to CRLF will cause it to be changed to CRCRLF.

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2010-08-12 19:14

The mail server is sat on the same box as the gallery install, it's a hmailserver, the error when searched for on the hmail server site stated the bit about /r/n which is also reported in the error shown above, I added the /r to the php script for the mail config and no difference

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Thu, 2010-08-12 19:21

So the hmailserver is rejecting gallery sending, or from that script I had you test out, or both....

To me, you don't even need that program. You should just be using PHP sendmail.

And is this a computer your personally own at your house, or at a co-located/hosted place?

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2010-08-12 19:25

The small script works perfectly and sends to both external address ie ones not on the same server and also to internal ones, the server is mine I also host other sites on it joomla 1.5 mainly and few others as well which can all send emails

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Thu, 2010-08-12 19:33

Ok. So then if that's the case, it looks like how gallery sends mail is not sending to hmail correctly, or hmail is having issues with gallery......

I will test the notifications on 2 of my 2008 boxes later today and let you know if I have issues. I haven't fully tested it because it doesn't import the comments and ratings yet, so G3 is useless to me until those sub features are installed....

I'll get back to you.

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2010-08-12 19:40

Thank you so much for your help

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Wed, 2010-08-18 09:23

any news yet?

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Thu, 2010-08-19 06:44
zebadee wrote:
any news yet?

Crap.... I was lazy. LOL. I'll boot up a VMware session, install it and get back to you...Gimme 20 mins.

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Thu, 2010-08-19 07:55

#13 {main}
2010-08-19 00:36:00 -07:00 --- error: @todo notification_event::item_updated() failed
2010-08-19 00:36:00 -07:00 --- error: @todo SEND_MAIL_FAILED
#0 E:\XXXXXX\modules\notification\helpers\notification.php(218): Sendmail_Core->send()
#1 E:\XXXXXX\modules\notification\helpers\notification.php(110): notification::_notify(Array, Object(Item_Model), '<html>? <head>...', Object(SafeString))
#2 E:\XXXXXX\modules\notification\helpers\notification_event.php(26): notification::send_item_updated(Object(Item_Model), Object(Item_Model))
#3 [internal function]: notification_event_Core::item_updated(Object(Item_Model), Object(Item_Model))
#4 E:\XXXXXX\modules\gallery\helpers\module.php(374): call_user_func_array(Array, Array)

Seems it's either not using PHP Sendmail or something. Because I can send mail out. So I'm saying it's the actual php file sending the notifications. I think it needs to be configurable... As I personally don't see an area to adjust the settings. Once I catch some sleep I'll look into it more....

We need one of the developers to tell us how it's handled and sent and where/what we can mess with. I'll start mucking with some php files. Thank god for VMware. ;)

=================================

After looking at \modules\notification\helpers\notification.php it's not windows compatible to me. Is it calling functions?

In G2, I know if you went to Admin Options > General Settings > Email you could configure it. WITH THIS, you can't.... This is a developer side issue.

By default, even in G2, it can't send mail. IF YOU CAN SPECIFY A SMTP SERVER IT DOES SEND

To

date Thu, Aug 19, 2010 at 3:52 AM
subject Gallery Email Test
mailed-by qmta04.westchester.pa.mail.comcast.net

hide details 3:52 AM (0 minutes ago)

This is a test email from Gallery2

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-08-19 16:40

In G2 there are functions specifically written for sending via SMTP and specifying all that stuff. There is currently nothing in G3 for that. It's using php's native mail function. See modules/gallery/libraries/Sendmail.php (at the bottom is where the message is sent)

Looks like this is using SMTP and it looks like it should work on Windows http://php.net/manual/en/function.mail.php So I believe as long as you have an SMTP server installed it should work.

I wonder if it's not sending because of some small formatting thing? I've only glanced over all of the discussion here: http://php.net/manual/en/function.mail.php

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2010-08-19 19:13

I think it is down to some sime formatting issue the mail server can be seen to accept the connection but then rejects the message stating a bare LF error

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Fri, 2010-08-20 05:03

NV is correct. For windows we just need to be able to "Specify" a smptp server, "able to set a login/password" and able to send a "test email"

If that's added, I think it will make the cross platform issue disappear.

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Fri, 2010-08-20 12:54

It works ONLY if I specify a host for the smtp server.

So it's a bug/feature missing that was IN G2 and NOT G3...

You shouldn't need ANY SMTP MAILSERVER installed at all as your host (comcast) , (hostgator) will provide with with this. Thus NOTHING on the server needs setup. So if we could do what a I asked above...

Allow the end user to:

1. Specify a smtp mailserver.
2. specify a login/password (if needed)
3. Send a test email out

I truly feel this issue would go buh bye......

Let me know. I will guinea pig this. Write me a custom php etc and I'll try them..... Or TELL me how to troubleshoot it specifically if you guys have a special way of doing that...I'm off for the weekend..... So don't expect any support until Monday, unless I get bored. ;)

Cheers.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2010-08-21 18:04

Please file a ticket for this feature.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Sat, 2010-08-21 18:33

Help me out here.... It's the weekend, Captain Morgan + my grill = going and I have friends here...

Point me in the right direction and I'll do it. Thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-08-22 04:54

Ranger187,

Right here: http://sourceforge.net/apps/trac/gallery You may need to register, it's free. Just login and click on New Ticket
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Mon, 2010-08-23 11:56

Niv.... Thanks dude.