Forums

ShiftThis.net | Swift SMTP Registration Email (4 posts)

  1. ptoone
    Member
    Posted 4 years ago #

    I am on the verge of freaking out. I need someones help. I just installed WP mu 1.3.2 and ShiftThis.net | Swift SMTP 1.0 and setup my smtp server in the options. I then send a test email (from the Options | SMTP | Test Connection) and it is delivered perfectly.

    Now, when I have a user try to register it gives the following error:

    Notice: The sender parameter must either be a valid string email address or an instance of Swift_Address. in C:\wamp\www\blog\wp-content\plugins\swift-smtp\Swift\lib\Swift.php on line 403
    Message failed to send to lat@gmail.com from Toonefam.net

    I have been at this for 3 days and finally am coming to you.

    I have unisntalled and reinstalled completely multiple times. I have tried reading through the plugin code and couldn't find anything that might resolve this.

    I do not have an email server, i just use smtp to my godaddy account.

    If you go to toonefam.net/blog/wp-signup.php you will see for yourself what is going on.

    Please help, I'm at my wits end.

    Thanks in advance!

  2. whooami
    Member
    Posted 4 years ago #


  3. ptoone
    Member
    Posted 4 years ago #

    whooami, I saw you posted, but there is no text there. Did you want to help me? :)

  4. ptoone
    Member
    Posted 4 years ago #

    Ok. I went through the code and found out exactly what is causing the stopping of new user blog/username creation..

    It is in the swift.php file located at plugins/swift-smtp/swift/lib/

    The code is around line 400...ish

    The original if statement is:

    if(is_string($from)&& preg_match("/^" . $encoder->CHEAP_ADDRESS_RE . "\$/", $from)

    Once I removed:
    && preg_match("/^" . $encoder->CHEAP_ADDRESS_RE . "\$/", $from)

    It worked fine. Anyone that is better at code than I have any ideas?...I'm just amazed I tracked it down this far :)

Topic Closed

This topic has been closed to new replies.

About this Topic