Gossamer Forum
Home : Products : Gossamer Links : Discussions :

GT mail --> smtp auth

Quote Reply
GT mail --> smtp auth
Now Most of the smtp service support SMTP auth connection only to prevent spam.
i wonder if GT::mail support it as i did not find any document about this feature.
or SMTP sending now in GT product because useless in such situation.


Any one here know about it?

Thanks
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
GT::Mail does support some forms of SMTP auth (CRAM-MD5, PLAIN, and LOGIN), but our applications haven't been updated to use it as we haven't had any requests for it.

Adrian
Quote Reply
Re: [brewt] GT mail --> smtp auth In reply to
Thanks brewt


you mean GT::mail is SMTP auth ready? just not be enbled in the currently version?


It would be a good news for me . i will take a look to the GT::mail.

Thanks
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
HI senior Thanks

May i see a sample code on how to use smtp auth by GT::mail?

Thanks



Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
For non mass e-mail mail (ie. pretty much all the single e-mails that are sent out from glinks. This excludes the mail from the Admin => Email), it generally goes through Links::send_email. If you look at that function, you'll see %send_opts, where it passes a blank smtp_user and smtp_pass options. If you fill those in with your info, it should use smtp auth.

Adrian
Quote Reply
Re: [brewt] GT mail --> smtp auth In reply to
   
I am back with a failure after the simple test
The returned error shows
Server said: 550 5.0.0 ... RCPT TO: Relaying not allowed - please use SMTP AUTH

It seems that i did not use the correct SMPT AUTH method. any suggest would be appreciated.
i have tried various option shows below. i wonder if i using wrong syntax?


use GT::Mail;
# Create and Sending
GT::Mail->send (
smtp => 'smtp.yahoo.com',
to => 'abc@yahoo.com',
from => 'me@yahoo.com',
subject => '123456789!!',
msg => 'I am a text email' ,
user => 'abe@test.com',
pass => 'passhere',
pbs_auth_mode => 'LOGIN',
#pbs_auth_mode => 'PLAIN',
#pbs_user => 'abe@test.com',
#pbs_pass => 'passhere',
debug => 1
) or die "Error: $GT::Mail::error";

Last edited by:

courierb: Aug 10, 2007, 7:42 AM
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
Thanks brewt

Now everything works
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
btw, the pbs option is for pop-before-smtp (ie. log into pop before sending via smtp) that is used by some servers.

Adrian
Quote Reply
Re: [brewt] GT mail --> smtp auth In reply to
i try to enable smtp auth by added three lines in data.pm which stores all config.


'db_smtp_server' => 'mail.abc.com',
'smtp_user' => 'test@test.com',
'smtp_pass' => '123123',
'auth_mode' => 'PLAIN',

however i got the error stated
Server said: 551 User not local; actully i can directly send test mail by GT::mail
it believe there is something wrong in the name of 'smtp_user' 'smtp_pass' 'auth_mode'
so the module do not recognise the parameter correctly.

any one know how to fix it?

Thanks
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
glinks' code doesn't try to pull those options from the config (though maybe it should). For now, you'll have to edit the code directly.

Adrian
Quote Reply
Re: [brewt] GT mail --> smtp auth In reply to
HI brewt
Thank you very much
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
  

i have now using gmail as the smtp , it takes 10 min to complete the mail sending.
i wonder if any cure for this?

let us say



display returnning page first
run mail sending in background.

while currently it send mail first then show me the returning page.

Thanks
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
courierb wrote:


i have now using gmail as the smtp , it takes 10 secound to complete the mail sending.
i wonder if any cure for this?

let us say



display returnning page first
run mail sending in background.

while currently it send mail first then show me the returning page.

Thanks




i have edit data.pm


'db_cgi_url_https' => '',
'db_gen_category_list' => '2',
'db_hit_expire' => '2',
'db_mail_path' => '',
'db_rate_expire' => '2',
'db_referers' => [],
'db_smtp_pass' => 'mailpassword',
'db_smtp_port' => '587',
'db_smtp_server' => 'smtp.gmail.com',
'db_smtp_ssl' => '1',
'db_smtp_user' => 'mail@mail.com',
'debug_level' => '0',
'disabled' => '0',
'dynamic_404_status' => '0',
'dynamic_no_url_transform' => [
'<%build_static_url%>'

Last edited by:

courierb: Sep 28, 2009, 1:08 AM
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
courierb wrote:
courierb wrote:


i have now using gmail as the smtp , it takes 10 secound to complete the mail sending.
i wonder if any cure for this?

let us say



display returnning page first
run mail sending in background.

while currently it send mail first then show me the returning page.

Thanks




i have edit data.pm


'db_cgi_url_https' => '',
'db_gen_category_list' => '2',
'db_hit_expire' => '2',
'db_mail_path' => '',
'db_rate_expire' => '2',
'db_referers' => [],
'db_smtp_pass' => 'mailpassword',
'db_smtp_port' => '587',
'db_smtp_server' => 'smtp.gmail.com',
'db_smtp_ssl' => '1',
'db_smtp_user' => 'mail@mail.com',
'debug_level' => '0',
'disabled' => '0',
'dynamic_404_status' => '0',
'dynamic_no_url_transform' => [
'<%build_static_url%>'


*smtp server password could not be setted in admin panel. set it manually in data.pm
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
Hi Courierb,
did you ever get your smtp-server settings in data.pm to work
At the moment I'm trying it with the following code.
But I have no success :-(

Code:
'db_smtp_pass' => 'my_password',
'db_smtp_port' => '25',
'db_smtp_server' => 'smtp.gpaed.de',
'db_smtp_ssl' => '1',
'db_smtp_user' => 'my_username',
Thanks in advance

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] GT mail --> smtp auth In reply to
in short word, yes

it works. i can send and receive mail .

but it need several modification. i forget where to edit


but it is not fully functional . so finally i give up .

this is the terrible shortcomeing of GT mail module has. nowdays almost all new mail module support STMP auth. but GT-mail looks so retard. no updating at all.

The reason given is simply "lack of user"


So right now . the solusion for you now is disable gtmail module , use alternative mail module instead . or pay someone to modify gt module or modify it by yourself.




Good luck
Quote Reply
Re: [courierb] GT mail --> smtp auth In reply to
Having this in my Data.pm


Code:
'db_smtp_pass' => 'password',
'db_smtp_port' => '587',
'db_smtp_server' => 'smtp.gmail.com',
'db_smtp_ssl' => '1',
'db_smtp_user' => 'support@host.com',


Running that on two sites and have no problem whatsoever, initially when i tested one of the sites it was on my laptop and yes it was sloooow but it was from my internet connection ... once uploaded to the server everything settled. Now working like a charm.

Both sites are running blazing fast no delay when sending mail, may be you should investigate the problem not in GT side but in hosting provider?

Edit: I should mention i'm running GLinks 3.3.0

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins

Last edited by:

eupos: Jun 28, 2011, 9:30 AM
Quote Reply
Re: [eupos] GT mail --> smtp auth In reply to
Hi Eupos

Thanks for sharing