Jump to content

Mailing Question

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
14 replies to this topic

#1
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I am sending an email from my website, and in GMail it's showing:
mailed-by: prs.ionicware.com
As I am using Toasted Penguin as hosting.

Is there a way I can change that to my website URL or something like that via a parameter or something?

Thanks

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Check out the parameters at PHP Mail.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts

Xav said:

Check out the parameters at PHP Mail.

[sarcasm]
Yeah that helped a lot
[/sarcasm]

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
When using the mail function, the From header must be set. If you do not explicitly set it, it will use the server's default [prs.ionicware.com]. You can set it either by
$headers = 'From: webmaster@example.com' . "\r\n";
mail($to, $subject, $message, $headers);
or by defining the the sendmail_from directive in your personal php.ini file.

#5
phpforfun

phpforfun

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,236 posts

John said:

When using the mail function, the From header must be set. If you do not explicitly set it, it will use the server's default [prs.ionicware.com]. You can set it either by
$headers = 'From: webmaster@example.com' . "\r\n";

mail($to, $subject, $message, $headers);
or by defining the the sendmail_from directive in your personal php.ini file.

Bump, Jordan, remember my problem? lol
Checkout my new forum! http://adminreference.com/

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts

John said:

When using the mail function, the From header must be set. If you do not explicitly set it, it will use the server's default [prs.ionicware.com]. You can set it either by
$headers = 'From: webmaster@example.com' . "\r\n";
mail($to, $subject, $message, $headers);
or by defining the the sendmail_from directive in your personal php.ini file.

But that sets the email address it's emailed from right? (So if anyone presses reply it will reply to that email) but the mailed-by in GMail is not the from field. I already set the from field as my email.

Where is the php.ini?

phpforfun said:

Bump, Jordan, remember my problem? lol

What's that?

Edited by TcM, 13 May 2008 - 01:24 PM.


#7
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
You have to make/define your own php.ini. Where is the mailed-by label in gmail? If I know what you are actually talking about, I can probably answer your question better :)

#8
phpforfun

phpforfun

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,236 posts
well it was to jordan, but here.

at one time, I had a mail script, worked PERFECT!, sent HTML, and would be sent from Whoever@analyzethathost.com

then something happened, and it changed, jordan and I worked on it for a while, he reset everything, but now, it sends from whoever@prs.ionicware.com, and it will show the HTML in the body
Checkout my new forum! http://adminreference.com/

#9
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Your problem was fixed though after I reinstalled exim. Your email came through to my gmail correctly (with HTML and the correct from address). Are you still having a problem with it?

I'd also like to point out that it is working correctly from CodeCall to gmail. I suppose it has something to do with the PHP coding - TcM, can you post your email code?

#10
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts

John said:

You have to make/define your own php.ini. Where is the mailed-by label in gmail? If I know what you are actually talking about, I can probably answer your question better :)

Sure. See the attached pictures. This is a mailing list, and I sent it to two email addresses one is fine and the other one came with that 'mailed-by' field.. I don't know why.. it's the same script and both were sent at the same time.

phpforfun said:

well it was to jordan, but here.

at one time, I had a mail script, worked PERFECT!, sent HTML, and would be sent from Whoever@analyzethathost.com

then something happened, and it changed, jordan and I worked on it for a while, he reset everything, but now, it sends from whoever@prs.ionicware.com, and it will show the HTML in the body

Not actually my problem. Your is showing in the from field....

Jordan said:

I'd also like to point out that it is working correctly from CodeCall to gmail. I suppose it has something to do with the PHP coding - TcM, can you post your email code?

send_mail($row[email],$title,$content,$checkhtml);
This code in a loop (as it's a mailing list)

Attached Files



#11
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Try
send_mail($row[email],$title,$content,$checkhtml,"-f <your email here>");


#12
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I have my email stored as a variable in the admin panel. how do I include the -f if I will use the variable? And isn't that the from field?