jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2009-09-16 18:53:46

putypuruty
Administrator
From: Oradea, Romania
Registered: 2008-08-20
Posts: 1,042

Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

Amongst the other new features in 1.8 is the possibility to configure in detail the route used for sending emails. If you want to use your Gmail address for sending the jobberbase emails, read on.

- open the admin panel and click on the Settings link, then on Mailer Settings
- select smtp instead of mail in the Mailer list
- set the SMTP host name to smtp.gmail.com
- set the SMTP port to 465
- select yes for SMTP authentication
- select ssl in the SMTP secure connection prefix list
- enter your gmail address in username@gmail.com format in the SMTP user name field
- enter your gmail password in the SMTP password field
- save the changes

That's it, now all your mails will be sent through your gmail address (like using a dedicated email client).

You can give it a try by writing yourself a message on the contact form or by recommending yourself a job.

Offline

#2 2009-12-02 13:59:50

shilmy
Member
Registered: 2009-12-01
Posts: 2

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

I tried this, it works, but there is a problem when using contact form.

When I try contact form, all mail come from my username@gmail.com, so I cannot find what is the real email address of the person who use the contact form to contact me.

Offline

#3 2009-12-02 18:45:22

putypuruty
Administrator
From: Oradea, Romania
Registered: 2008-08-20
Posts: 1,042

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

This problem is not related to jobberbase but to the way Gmail handles the email sender (the From: attribute) to prevent forging it.

The only solution I see (and the most correct from my point of view) is the following: open class.Postman.php and in the MailContact method replace the first line with the following:

$msg .= "\n\n---\nSent by: $name <$email>";
$msg .= "\nIP: " . $_SERVER['REMOTE_ADDR'];

In this way, the sender will appear in the email's body.

Besides this, you could add the following line

$mailer->AddReplyTo($email, $name);

right before this one

$mailer->SetFrom($email, $name);

I guess that if you were to use an email client, pressing reply would reply to the actual sender (although in gmail this doesn't happen, you are actually replying to yourself)

Hope that this solution is acceptable.

Offline

#4 2009-12-26 11:34:27

TKFA
Member
Registered: 2009-12-25
Posts: 3

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

i have tried that but it's still replying me to my mail not the applicant mail

Offline

#5 2009-12-27 11:13:59

putypuruty
Administrator
From: Oradea, Romania
Registered: 2008-08-20
Posts: 1,042

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

Hi!

I don't think that you will be able to reply to these messages (I tried replying to a mail which had that Reply-to header set but I was still replying to myself, not to the person that posted).

If you integrate the code that I posted above, you'll at least be able to see the sender in the mail body and you can click on that email address to write him a mail - note that this is not a jobberbase issue/problem, but it's related to how Gmail treats these messages.

Offline

#6 2010-01-25 16:21:43

jimmmarks
Member
Registered: 2010-01-21
Posts: 4

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

I didn't get your point. It's not working out for me.

Offline

#7 2010-02-13 14:40:59

jeppjepp
Member
Registered: 2010-02-13
Posts: 3

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

anyone else who get this error when you try to post a new job, and use the gmail as sending emails:

"Could not instantiate mail function. Could not instantiate mail function. "

Offline

#8 2010-03-23 11:27:58

rashanoureldin
Member
Registered: 2010-03-15
Posts: 5

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

both ways not working with me
i tried sending using gmail it gives me error
SMTP Error: Could not connect to SMTP host. SMTP Error: Could not connect to SMTP host.

i tried mail function
it giving me error
Could not instantiate mail function. Could not instantiate mail function.

HELP ME WHAT I CAN DO PLEASEEEEEEEEEEEEEEEEEEE

Offline

#9 2010-07-13 09:24:09

tatesjourney
Member
From: Paris, France
Registered: 2010-07-08
Posts: 10
Website

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

It worked perfectly, I didn't use gmail however, I used my domain name email. It shows the senders email automatically. I think it works better if you use your domain name email for those who have those setup.

1. I got my smtp information from my server
2. changed the port number since my server requires it
3. put in my email like: examplename@tatesjourney.com
4. Put in my password for the email.
5. Then, I FORWARDED THE EMAILS FROM MY DOMAIN EMAIL ADDRESS TO MY GMAIL.
6. sent a message from my contact form

This might be a better option than fooling around with gmail, plus this only takes minutes. Give it a try; worked like a charm for me.

Last edited by tatesjourney (2010-07-13 09:33:06)

Offline

#10 2010-07-30 09:51:07

hobo
Member
Registered: 2009-03-01
Posts: 447

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

To include sender e-mail for jobberbase 1.9.1 I added the:

$msg .= "\n\n---\nSent by: $name <$email>";

at the beginning of the MailContact function as suggested by putypuruty, and removed this line

{BR}{BR}---{BR} Sent by: {SENDER_NAME} <{SENDER_EMAIL}>

from _templates/my template/_emails/emails_en.xml at the bottom of the file.

This just shows e-mail address after the message body.
E-mail address was not showing before, and I am using sendmail.

Offline

#11 2011-03-14 13:47:41

gezzagregz
Member
Registered: 2011-03-09
Posts: 9

Re: Jobberbase 1.8 - sending emails from a gmail address using secure SMTP

i followed all the instructions - setup a new google account and still i am getting:

SMTP Error: Could not connect to SMTP host. SMTP Error: Could not connect to SMTP host. 


I'm not sure where i am going wrong here??

any help is much appreciated!.

Offline

Board footer

Powered by FluxBB