pancakes

MicrostockGroup Sponsors


Author Topic: Email oddities  (Read 3277 times)

0 Members and 1 Guest are viewing this topic.

« on: July 15, 2013, 14:29 »
0
Hi gang

Apologies for the lengthy explanation but there's a problem I'd like to iron out.

My setup is this -

My Symbio domain name is registered with a UK registrar.

My Symbio site is hosted on a subdomain of my JustHost TLD and my Symbio domain name points to this. I simply changed the nameservers where my domain name is registered as per the JustHost Knowledgebase.

Nothing (at the moment) is installed in my TLD at JustHost.

To begin with, I set up the mailservers to be on JustHost but I couldn't get it to play nice with mail clients on my Macs, iPad or iPhone and when I did dummy registrations to test this setup, I rarely received the email. I did get the daily update emails from Symbio though and Webmail through JustHost seemed to work.

Because of this, I changed the DNS mailservers in JustHost to point back to the mailservers where my Domain name is registered and set up a mailbox there.

Now, emails are much quicker and if I do a direct email using a client or webmail, everything's good and looks as it should. But now checking with a dummy registration, emails that are sent via Symbio arrive with the address that reads as part_of_my_subdomain_name_at_justhost_mailservers. This only happens if emails originate in my Symbio site, whether registering or getting the update email. Needless to say, it doesn't look very professional.

Am I missing a setting somewhere?

Thanks,

Russell


« Reply #1 on: July 15, 2013, 15:18 »
+1
Hi Russell, I "think" it is only you that gets the @justhost***  mail and the customer gets one from the proper address - try registering on your site with a second email address and see what happens.

This strange address can be got around but I got in a bit of a muddle when I was trying to sort it out a few years ago and never bothered again

« Reply #2 on: July 15, 2013, 15:53 »
0
It doesn't seem to work like that though, Tinny - the subdomain***@justhost*** email address is how it arrives in my Inbox when I use different email addresses to register.

Any email originating from my Symbio site ends up like this including notifications for comment moderation and new registrations as well us the network update email. Emails sent directly by me using a client or webmail are OK.


« Reply #3 on: July 15, 2013, 16:12 »
0
What I meant was that the emails to the customer are a real address while mails to us are the justhost one, so it is only us (site owners) who get them like that

« Reply #4 on: July 15, 2013, 16:47 »
0
What I meant was that the emails to the customer are a real address while mails to us are the justhost one, so it is only us (site owners) who get them like that

Yes but the site can't differentiate another customer from me if I use one of my spare emails that are nothing to do with Stockphotology or JustHost when I register a testing account. And my dummy registrations with completely separate emails get the ****@justhost**** address.

So it looks like any new registration is going to get an email like that and i guess sales confirmation emails too.

« Reply #5 on: July 18, 2013, 00:46 »
0
Another network member has confirmed that an email originating from my site arrives with a spammy-looking, not to mention wrong, *****@*****.justhost.com address.

Bah.  :o  >:(

« Reply #6 on: July 18, 2013, 04:20 »
+1
Hi Russell

Think I have the answer - under the  ~~~ is the bit I found on Justhost but did not understand most of it so did the bottom option, just hope it does not change anything else

In my php.ini I changed

sendmail_path = /usr/sbin/sendmail -t -i

to

sendmail_path = /usr/sbin/sendmail -t -i -f'user@domain.com'

Change user and domain to your own details


~~~~~~~~~~~~~~~~
Just Host Web Hosting Help
Scripted E-mails appear to come from username@just###.Justhost.com
Problem:
    Why do scripted e-mails come from < username@just###.Justhost.com > when I have specified otherwise?
Solution:

    This is because our servers require you (or your script) to use a properly formatted, valid From: field in the email's header. If the From: field is not formatted correctly, empty or the email address does not exist in the cPanel, the From: address will be changed to username@just###.Justhost.com.

    You must change the script you are using to correctly use a valid From: header.

    Examples of headers that should work would be:

    From: [email protected] will work
            From: "user" <[email protected]>

    Examples of headers that will NOT work:

    From: "[email protected]"
            From: user @ domain.com
            From: [email protected] <[email protected]>

    Our servers will not accept the name for the email address and the email address to be the same. It will not accept a double declaration of the email address.
    If you do not want to edit your PHP based scripts, you can modify the sendmail_path line located in your php.ini. You would want to modify it like this:

            sendmail_path = /usr/sbin/sendmail -t -i -f'[email protected]'
           

    The part that you will be adding is: -f'[email protected]'

    This method works because the php mail function calls sendmail (a program on the server) directly using the path defined in your php.ini. Placing the -f flag here allows us to work directly with sendmail without PHP getting in the way. Passing a "From" header to the php mail function will override the -f flag set in your php.ini.

    For scripts such as Joomla and Wordpress, you will need to follow their documentation for formatting the from fields properly. Wordpress will require the Mail From plugin.

    Note: The email address you use must be a valid created account in the cPanel.

« Reply #7 on: July 18, 2013, 07:22 »
0
Hearts, unicorns and rainbows Tinny - you are a star!

That worked! If only I'd thought to look on the JustHost help pages (duh...)

Now, to be completely done and dusted, all I need is to appear on the Symbio network directory because my site hasn't appeared on there yet...

« Reply #8 on: July 18, 2013, 09:56 »
0
...And now I am appearing on the Network Directory. Huzzah!

I love it when a plan comes together.

« Reply #9 on: July 18, 2013, 10:17 »
0
Brilliant - and thanks - glad to be of help.  The trouble with help pages is that you have to find the right question to ask before you can find the answer and that takes a lot longer than the fix!


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4098 Views
Last post August 08, 2008, 17:37
by NYTumbleweeds
1 Replies
4918 Views
Last post September 19, 2008, 06:40
by litifeta
29 Replies
34714 Views
Last post August 20, 2010, 11:57
by Eyedesign
6 Replies
5475 Views
Last post April 29, 2011, 15:05
by WarrenPrice
2 Replies
3151 Views
Last post December 18, 2011, 03:38
by santosa laksana

Sponsors

Mega Bundle of 5,900+ Professional Lightroom Presets

Microstock Poll Results

Sponsors