Jump to content


Photo

$headers = 'Reply-To youremailaddress@yourISP.com' ?


  • Please log in to reply
6 replies to this topic

#1 Rianna

Rianna
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 27 May 2006 - 03:27 AM

Hello these instructions someone gave me to get my "From: "in my email to give my own email address as follows...

$headers = 'From: youremailstuff@yourisp.com' . "\r\n" .
'Reply-To: youremailstuff@yourisp.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

I am doing something wrong. I am getting this error message from the server. This is what the server message says.

"MAILER-DAEMON@smtp04-02.mesa1.secureserver.net

We're sorry. There's a problem with the e-mail address(es) you're trying
to send to. Please verify the address(es) and try again."

I was told to enter my isp in the from and the reply as you can see above. I took that as meaning my server IP address. Is this incorrect? If it is the IP how to I write it, as numbers with the usual periods in between or something else.

If it isn't the IP but an ISP what exactly do you mean? Do you mean my host has its own ISP address that I can refer to? Or is there an individual ISP for each hosted account? Let me know please, thanks, Jen





#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 27 May 2006 - 04:17 AM

I guess the problem is not with the headers, but with the address which you are trying to send to.

As far as I know, you can mess up the headers totally and the message will still be sent.
~ D Kuang

#3 Rianna

Rianna
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 27 May 2006 - 05:13 AM

Thanks but it is not working anyway. My email is not sending, I am getting an error message from the server.

I need to know about this ISP question above. What do I enter into the ISP area of the command.

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 27 May 2006 - 08:22 AM

[!--quoteo(post=377501:date=May 27 2006, 05:13 AM:name=1Jen)--][div class=\'quotetop\']QUOTE(1Jen @ May 27 2006, 05:13 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Thanks but it is not working anyway. My email is not sending, I am getting an error message from the server.

I need to know about this ISP question above. What do I enter into the ISP area of the command.
[/quote]

php.ini set the email up of your isp ok.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#5 Rianna

Rianna
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 27 May 2006 - 08:26 AM

??? Are you saying I need to set it up through the php ini? If so how? Thanks.


[!--quoteo(post=377523:date=May 27 2006, 03:22 AM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ May 27 2006, 03:22 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
php.ini set the email up of your isp ok.
[/quote]


#6 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 27 May 2006 - 08:40 AM

[!--quoteo(post=377524:date=May 27 2006, 08:26 AM:name=1Jen)--][div class=\'quotetop\']QUOTE(1Jen @ May 27 2006, 08:26 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
??? Are you saying I need to set it up through the php ini? If so how? Thanks.
[/quote]
you can have an smtp service running on the server

then in the php.ini set under [mail function]

SMTP = localhost;your smtp server, localhost should be fine if the smtp server is on this computer
smtp_port = 25; or your mail port youre using
sendmail_from= user@domain; should be a user on the machine, i have mne set to webmaster and all mail sent from the mail function appears to come from webmaster at domain



from a php.ini file ok example.

sendmail_from testaddress@example.com testaddress@example.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25



Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#7 d11wtq

d11wtq
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 27 May 2006 - 09:41 PM

Or you could use a ready made mailer class that does all the header work for you.

[a href=\"http://www.swiftmailer.org/\" target=\"_blank\"]http://www.swiftmailer.org/[/a]

You can use sendmail or an SMTP server (one of your choice) with that.
[a href="http://www.swiftmailer.org/" target="_blank"][!--coloro:#111199--][span style="color:#111199"][!--/coloro--]Swift Mailer :: Advanced Pluggable Mailing without mail()[!--colorc--][/span][!--/colorc--][/a]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users