creating activation email

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Post by swirlee » Wed Feb 02, 2005 7:12 am

Yes, that sounds like a fairly standard implementation.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Post by Alexej Kubarev » Wed Feb 02, 2005 9:11 am

it looks ok but you need to use single quotes in the text or slashes because you start a parameter string with " and then have " in the body message..

That will send the mail... however you might need to set up some things in PHP.ini to make it work.. sendmail parameters (if any) for *nix systems OR

; For Win32 only.
SMTP = host here
smtp_port = port here (25 is default)
; For Win32 only.
sendmail_from = me@domain.com

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Post by Alexej Kubarev » Wed Feb 02, 2005 10:30 am

ofcourse... if you have an email server on localhost.. otherwise use this one:
smtp.bredband.net on port 25

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Post by Alexej Kubarev » Thu Feb 03, 2005 11:36 am

well thats not a really smart :) hehe..

Sorry for the delay: had no time to look at the forum...

Anyway: nice that you've sorted it out :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest