Advertisement:

Author Topic: How to remove 'via' and server name when sending mails ?  (Read 2754 times)

adis182

  • Newbie
  • *
  • Posts: 4
How to remove 'via' and server name when sending mails ?
« on: December 25, 2014, 05:46:53 am »
Hi there,

i have an issue with email in osclass. I don't want user see my server name. Please see example below (Email on Gmail).



I know it could be removed following this instructions (http://stackoverflow.com/questions/8236312/how-to-remove-via-and-server-name-when-sending-mails-with-php), but i don't know how to do in osclass. 

Any help will be appreciate.
Thanks


dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: How to remove 'via' and server name when sending mails ?
« Reply #1 on: December 25, 2014, 07:25:28 am »
That code is not inserted by Osclass, probably appended by hostgator, so try to contact them and ask if there is an option to remove it. Probably they use this as a signature in case of spam.

Regards

adis182

  • Newbie
  • *
  • Posts: 4
Re: How to remove 'via' and server name when sending mails ?
« Reply #2 on: December 25, 2014, 12:02:04 pm »
That code is not inserted by Osclass, probably appended by hostgator, so try to contact them and ask if there is an option to remove it. Probably they use this as a signature in case of spam.

Regards

Hi dev101,

Thanks for your reply. Somehow, i think it come from osclass, because i've made a test file sending email using php in same server with script below and the 'via' part doesn't show.

Code: [Select]
<?php
        $ToEmail 
'someemail@gmail.com'
$name 'Jhon Doe';
$email 'noreply@osclassdomain.com';
$EmailSubject 'Test Only'
$mailheader "From: ".$email."\r\n"
$mailheader .= "Reply-To: ".$email."\r\n"
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"
$MESSAGE_BODY "Name: ".$name."<br>"
$MESSAGE_BODY .= "Email: ".$email."<br>";

mail($ToEmail$EmailSubject$MESSAGE_BODY$mailheader'-finfo@osclassdomain.com') or die ("Failure"); 
?>


But, when i remove '-finfo@osclassdomain.com' from code above and run the script again, the 'via' part is show on email inbox.



dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: How to remove 'via' and server name when sending mails ?
« Reply #3 on: December 25, 2014, 01:57:17 pm »
Well, I am not sure hence *probably*; however PHP mail() is not the same thing as your email server, so first check with hostgator support to see if you can get some info about it. Then report an issue if you still cannot resolve it with support.

Regards

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to remove 'via' and server name when sending mails ?
« Reply #4 on: December 25, 2014, 01:58:04 pm »
@adis182
I do not think it is done by osclass, because I have never had same issue. Anyway, hostgator is way to hell...

adis182

  • Newbie
  • *
  • Posts: 4
Re: How to remove 'via' and server name when sending mails ?
« Reply #5 on: December 29, 2014, 06:09:10 am »
@adis182
I do not think it is done by osclass, because I have never had same issue. Anyway, hostgator is way to hell...

I've been created a ticket since dec 26, but still no reply from hostgator. Very poor support.
Yes you are a right.
hostgator is way to hell  >:(

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to remove 'via' and server name when sending mails ?
« Reply #6 on: December 29, 2014, 03:02:39 pm »
@adis182
Well, problem is that people usually think that saving 15$ for 1 year is worth of it, but now calculate how many time you lost waiting for their support...
My hosting provider has in business hours online chat you can talk with them and they solve all my requests very quickly, even it is complex

Aficionado

  • Guest
Re: How to remove 'via' and server name when sending mails ?
« Reply #7 on: December 29, 2014, 03:55:20 pm »
@adis182
I do not think it is done by osclass, because I have never had same issue. Anyway, hostgator is way to hell...

I've been created a ticket since dec 26, but still no reply from hostgator. Very poor support.
Yes you are a right.
hostgator is way to hell  >:(
« Last Edit: December 08, 2015, 07:34:16 am by Aficionado »