Jump to content

Email issue brain explosion soon


NSW42

Recommended Posts

Heya Guys,

 

ive tried over and over by 10,000 times and im about to throw my pc thru the window, my issue is, the email validation link is in text format and cant be clicked, now for the noviee pc user, some still dont know how to copy and paste, now ive tried everything under the sun to try and make it clickable but its kicking my ass from here to next yr, below is the send coding, so if anyone can take a look at it and maybe give me a heads up if the issue lays within this coding and im missing something, would appreciate the help.

 

 

            $mail = new SendMail;

$mail -> From = "{$CONF["SITE_NAME"]} <{$CONF["SITE_SYSTEM_EMAIL"]}>";

$mail -> To = $_SESSION["REGISTER"]["email"];

$mail -> Subject = $mailContent[0];

$mail -> Body = $mailContent[1];

$mail -> SMTPHost = $CONF["MAIL_SMTP_HOST"];

$mail -> SMTPPort = $CONF["MAIL_SMTP_PORT"];

$mail -> SMTPUser = $CONF["MAIL_SMTP_USER"];

$mail -> SMTPPassword = $CONF["MAIL_SMTP_PASSWORD"];

$mail -> SMTPTimeout = $CONF["MAIL_SMTP_TIMEOUT"];

$mail -> MailMethod = $CONF["MAIL_METHOD"];

$mail -> Charset = $CONF["MAIL_CHARSET"];

$mail -> Encoding = $CONF["MAIL_ENCODING"];

$mail -> SendmailPath = $CONF["MAIL_SENDMAIL_PATH"];

 

many thanks.

Link to comment
https://forums.phpfreaks.com/topic/118248-email-issue-brain-explosion-soon/
Share on other sites

  • 6 months later...

Your question isn't very clear.

 

Are you trying to generate a validation link you can include in an email that you can send to users, so that they can just click it and have it validate them?  If so, the body of the text should include the whole link such as:

http://my.domain.org/validate.php?code=myvalidationcode

 

Or are you merely trying to write some code that will execute and send an email?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.