Gossamer Forum
Skip to Content



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